Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [webforms]

One of the modules used for surveys, contests, personalized contact forms, or petitions is the Webform module.

Filter by
Sorted by
Tagged with
0
votes
0answers
53 views

redirect submission failing after 8.7.5 [duplicate]

We have a webform that uses a webformhandler to post the submission to our credit card processor. The webform works correctly when executed by itself, but when the form is embedded in a Secondary ...
-2
votes
1answer
49 views

How do I theme a webform email?

I have a subscription form created with webform. When the user submits the form I want to send a customised confirmation e-mail that includes some social links, images and site logo. I have looked for ...
0
votes
0answers
21 views

Creating new page from webform entry [duplicate]

I'm trying to create a webform that generates a new page filled with that submission data. So certain users can add/edit new pages easily. Is there a certain webform setting I'm missing for this? I've ...
0
votes
0answers
21 views

How to use webform tokens in mimemail Twig templates

I'm trying to send webform confirmation emails via mimemail. I managed to trigger the correct template file, but my problem is: How can I pass certain webform submission_values into the twig file of ...
0
votes
1answer
24 views

Block email from submitting webforms

I have a list of email addresses that I would like not be able to submit in webforms. I can't seem to find a setting for this? Is this currently possible or do I need to make a custom module to ...
0
votes
0answers
34 views

Webform Submission - Taxonomy Term ID Token

I have a webform that uses taxonomy term fields. After form submission I'm redirecting to a custom URL with query string parameters and using tokens for the values. The page I'm redirecting to ...
0
votes
1answer
169 views

How to add multiple “submit” buttons in Webform

If I add a button to a webform creating a module with something like this in it: $form['actions']['submit_2'] = array( '#type' => 'submit', '#value' => t('Submit 2'), ); It appears in my ...
1
vote
0answers
28 views

How can I filter submissions for download?

I have a query about the webform download options. /admin/structure/webform/manage/{{webform_name}}/results/download In my webform there is a field dropdown with some data like 'a', 'b', 'c'... ...
0
votes
1answer
29 views

Webform detect sender country automatically

We use Drupal 7 webform module. We want to detect the sender's Country automatically from the IP Address. Then based on the Country, the form is sent to another e-mail address. We do not want an extra ...
-1
votes
1answer
33 views

Is there a way to add Query string in URL after webform submission and remove the ?token from confirmation page

Actually, I would like to add ?sid=submission_id in the url except ?token=random_token_value after webform submission. Is there a way for that?
1
vote
0answers
22 views

Attaching webform to node

I have a question regarding the webform module. Is there a way to automatically attach a webform to a type of content? I have done something similar through adding it as a field in that content type, ...
0
votes
1answer
65 views

How can I load webform content inside a custom webform composite element?

I am using Drupal 8.7.3 and Webform 8.x-5.2. I created a custom composite field in a multistep webform by extending WebformCompositeBase. My users select a subject in an earlier step. In this step I ...
-1
votes
1answer
65 views

Automatically export submissions as PDF to a directory on the server, or external location

Background Drupal 8 have a great new feature: Ability to use entity_print to export submissions as pdf, and even to attach the pdf to email and send. Request Because of the sensitivity of some ...
0
votes
0answers
26 views

Get price value in Webform submission

I'm trying to create a webform that has an entity selection element linked to an entity reference view that has a selection of products from the commerce module listed. So far this has all been ...
-1
votes
1answer
70 views

Which hook can I use to retrieve form values after submitting a webform? [duplicate]

As the title suggests, I would like to know what is the correct hook for retrieving datas after a submission. The goal is to do a task based on the value of a data. Any help would be appreciated.
0
votes
0answers
22 views

Custom field validation condition not working

I have created a custom form validation. I am using webform module to build the form. in _achva_tz_validate function there are two fields that have the same validation. The second field, zug_id, is ...
0
votes
0answers
46 views

How do I make webform submissions available to Rules and loop

I have a webform application: five (5) questions/statements (Select Yes/No) for anonymous user usage. First result: all five (5) questions are answered "Yes" - the webform gets submitted, emails get ...
0
votes
0answers
20 views

Launch media browser with file webform component

I have webforms that only authenticated users can fill out and submit. I'd like the file component to launch the Media Browser instead of just the plain find a file and upload it. I've spent many ...
0
votes
1answer
43 views

How do I programmatically close webform by node date field?

Background: I'm adding an events (custom content type) & registrations feature to an existing drupal 8 website. My experience in drupal is pretty minimal. But I can find my ways around code. ...
0
votes
1answer
31 views

Is there a built-in “None of the above” checkbox option in webform? and how to create one?

I may be mistaken but I recall seeing such option in webform somewhere before and I don't seem to find it now (in case I'm right). I have several questions with big lists of checkboxes and if there'...
0
votes
0answers
22 views

Webform e-mail header

Not sure if I can explain this right, in any case here it goes... Having issues with rejected e-mail messages from the webform automatic e-mail generation. The messages are being bounced back because ...
0
votes
1answer
39 views

WebForm images not displayed after node creation with submission handler

I'm at a loss. I'm using WebForm 8.x-5.2 on Drupal 8.7.3. I have a custom webform handler that takes the submission and creates an unpublished node for review. The webform includes an image field ...
0
votes
0answers
13 views

What is the data key for a cell in a custom composite?

I am trying to figure out what the data key is in a custom composite table for specific cells. If I look at the YAML for a submission I see the following: data: dimensions: - length: '1' ...
0
votes
1answer
72 views

Which files do I need to edit to alter webform #states with hook_form_alter?

I need to create #states conditions between either the fields in any one element in a webform or across other elements in the same form. I'd hoped I could do it via the WF yaml editor but it seems I ...
0
votes
0answers
80 views

Calculate values in or from custom composite field

Is it possible to use computed token or twig to calculate custom composite fields? I have a custom composite field that asks for length, width and height. I would like to be able to add a 4th field ...
1
vote
2answers
212 views

How can I programmatically add webform elements to an existing webform?

I have a webform that is very simple, it's a questionnaire. It is attached to a content type called "event". e.g. discussion_1: '#type': likert '#title': 'Discussion 1' '#questions': '...
0
votes
0answers
19 views

In Webform 8 - can you omit the fieldset label in a confirmation email?

In Webform 8x I would like the email sent with the webform_submission_values to not include the fieldset labels. What would be the way to achieve this? Alternatively, is there a way to not send the ...
0
votes
0answers
33 views

Create custom webform when creating node?

I’m trying to find out if it’s possible to create webforms when creating nodes or paragraphs. I mean instead of choosing a predefined webform, then build it right inside the field. I figured that ...
0
votes
1answer
36 views

What is a “link template” in a token?

When configuring a webform submission URL by using tokens, I noticed this entry that specifies a link template: [webform_submission:url:?] The URL of the webform submission. Replace the '?' ...
0
votes
1answer
41 views

How do I pass a response from a Webform custom handler back to Drupal to display on the confirmation page

I have created a custom module for a custom Webform handler. The custom handler submits to an external SOAP api. There are various response options that are received back from the SOAP api that ...
1
vote
1answer
147 views

Why isn't my custom Form API #states applied in my webform yaml editor working?

I have the need to set visibility state of a checkbox option in one question (Table checkbox select) based on the value of another checkbox in the same table. I also have other scenarios where I would ...
0
votes
0answers
35 views

custom webform time and date elements id's

Using webform, I have two "Date/time" elements with popup date and timepickers enabled. I have a jQuery script to calculate and display detailed time difference between the values (date and time) ...
0
votes
0answers
91 views

Passing variables between theme preprocess hooks

I'm a newbie to Drupal 8 and PHP coding in general so I hope my approach is not too much out of the lines. I'm trying to theme some parts of my website by fiddling a bit with templates, what I need to ...
0
votes
1answer
161 views

Webform dynamic select options based upon another element's state

Say there are two select elements with dynamic options (via an options alter hook, sourced from an external resource): A and B. There is also a datasource that provides a relationship that determines ...
1
vote
1answer
43 views

How can I remove or overwrite the YAML validation from a Webform Entity?

I am currently building a module that parses raw HTML into a webform using YAML, however I am running into an issue where the name='SomeName' on form elements is causing an error in the YAML keys. ...
0
votes
0answers
32 views

Can we make 2nd field required only if 1st field is filled in a custom composite field?

I am using custom composite field in one of my webform form . It has 4 fields and i want to make 2nd field as required only if 1st field is filled .How can i do this? I had added field2 as required ...
0
votes
0answers
21 views

Send email when a field gets filled for the first time

Is it possible to conditionally send an email when a Webform field is updated? I have a simple workflow in which one of the steps consists in sending an email based on the value of a checkbox, when a ...
0
votes
0answers
17 views

How do I 'set to' an element?

I'm porting an existing Drupal 7 webform to Drupal 8. I'm having difficulties with the new conditional setup. In D7, I set the value of a 'redirect' element using the 'set to' on the conditionals tab. ...
0
votes
0answers
20 views

Clearing conditionally hidden inputs

Am I misunderstanding how this works? https://www.drupal.org/node/3003163#comment-13134024 We have checked "Clear Value(s) When Hidden" but the values in the hidden fields are not cleared and are ...
1
vote
0answers
53 views

send HTML mail from Webform using Mimemail

Trying to send HTML mail from Webform using Mimemail I've copied mimemail-messages.html.twig to my theme's folder and it's properly picked up. Problem is it's applied to all outgoing emails, user ...
0
votes
0answers
143 views

Adding jQuery to a webform

Trying to count selected radios in a webform, I managed to make it work outside drupal (please see link below) but I'm not sure how to add it to my theme/webform. https://jsfiddle.net/j9q75Lay/ I ...
0
votes
1answer
82 views

Close webform modal and redirect to entity

I have a webform that opens inside a modal. Everything works fine. Then I had the problem of closing the modal after the form was submitted. I fixed that to with the help of the following link: https:/...
0
votes
0answers
23 views

Conditional logic within multiple Checkbox entity references

Hi I am using Entity check boxes referencing taxonomy items. I want to create a condition within checkbox entity. Eg. let say my taxonomy has 5 items. A,B,C,D,E. I want to create a condition that when ...
0
votes
0answers
13 views

webform menu not loading

I am having a problem with Webforms module. After installing the module, I couldn't enter the webforms menu and it displaying and error saying sqlstat[42S02] Base table not found. I haven't done ...
0
votes
0answers
22 views

Populate a 2nd date field min date from a previous date field in webform

I have 2 date field on my webform. Both date fields have a min date set to today and a max date set to today + 2 years. When a user selects a date in the 1st date field, is it possible to set the 2nd ...
0
votes
0answers
12 views

Webform attached to group content node shows no results

I am able to attach a webform to a group content node, but then a strange thing happens. My form follows the event registration example. After registering, no results show in the group content "...
0
votes
1answer
26 views

Programatically copy an image from user entity to webform submission entity [closed]

Using a custom webform handler, I am trying to copy an image from the image field (field_usr_avatar_img) located at the user account page to the image element (avatar_img) located at the webform ...
0
votes
1answer
412 views

How to create a custom Webform handler to submit to a SOAP API [closed]

I have a Webform that when submitted needs to be posted to a SOAP web service. I have search for a bit of direction but I can't seem to find anything about SOAP and Drupal 8/Webform. Can anyone point ...
0
votes
0answers
30 views

How to solve this Webform conditional rules?

I have a webform with 4 Radio button - 1, 2 , 3, 4 & 4 field sets - Person1, person2, person3, Person4 What I am trying to achieve, if I select - Radio 1 - Person1 field set would show - Radio ...
0
votes
0answers
6 views

How can I include the email recipient in my webform VIEW

I am creating a view to show all webforms and some of the data included in the webforms. Is there a way to also pull the email recipient data? (Example: You create a webform, then click on "email" ...