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
0 answers
13 views

Image attachment doesn't appear in notification email

I have an image upload field where a user can attach an image. (This is for the Parts and Service page for a product site.) On the notification email to the Service Department, the only way the image ...
-1 votes
0 answers
12 views

Create more complex content entities from webform submissions

I would like to convert form submissions into content. There are already two modules for this: webform_content_creator and webform_entity_handler. These two work well for flat entities. Unfortunately, ...
  • 279
-2 votes
0 answers
28 views

Ho to get recaptcha response token in custom webform handler?

I have a webform with re captcha. In the handler, while calling the external API I need to send re captcha token. I am not getting this token in the submitted form fields. How to get the recaptcha ...
  • 1
0 votes
2 answers
34 views

Google API callback doesn't work

I've created this javascript (delivery.js) that is supposed to take a pre-existing div on a webform page and append a Google Map to it, along with a few circles of differing radius. Here is my ...
-2 votes
0 answers
16 views

I want to use webform_entity_checkboxes with comment type

We would like to add a mentions function to the comment feature. We would like to be able to select Mention by using a check box for registered users. We believe that the field type ...
1 vote
1 answer
33 views

How do you override a module's template from another module?

I'm trying to override an email template of the webform module. The project is headless so we don't have a custom theme, and we'd like to stick with the Adminimal contrib theme. However, we do have a ...
  • 111
0 votes
2 answers
29 views

Webform javascript CSS selectors with table

I'm currently trying to add javascript via the settings tab for a webform that is supposed to dynamically update the displayed totals at the bottom of the webform page for the user. A part of this ...
0 votes
0 answers
41 views

Duplicate webform entries

I have a problem with my webform. When the form is submitted, the entry is duplicated (see picture) and although I have the option to prevent duplicate entries in the module they are still duplicated. ...
  • 1
1 vote
1 answer
49 views

How to get Webform Element value into Custom Token

I create Custom Token and I want to get Webform Element and assign it to the Token, in my case the Element that I try to return is IP_ADDRESS , I tried to do the below and it didn't work: use Drupal\...
  • 144
0 votes
1 answer
39 views

Dynamic webform component select options

In Drupal 7, dynamic options for a select widget could be created with hook_webform_select_options_info(): /** * Implements hook_webform_select_options_info(). */ function ...
  • 403
1 vote
0 answers
20 views

Add Javascript On Webform Confirmation Page

I am using Webform to generate a form on a page. Wherever this form loads, I need to run some javascript to push some data for Google Analytics 4 on two events (any field is focused, form is submitted ...
  • 51
0 votes
0 answers
39 views

Submit webform via custom button

I want to update a webform submission via custom button. On the same page as my webform I created a custom button in a block. <button id="myButton" onClick="submitWebform()" ...
0 votes
0 answers
13 views

I need to send a mail from my custom module if there is any update in webform

I have to implement a custom module where I need to send a mail if there is any update in webform. I cannot use Rules Module. For example, there is an option field(drop down) in webform, where value ...
0 votes
0 answers
29 views

How to redirect back to webform page with the session data

I have built a webform on drupal 9, instead of using the custom settings I have a submission handler which redirects to a controller for summary page and complete page. The submission handler stores ...
0 votes
1 answer
27 views

Submissions of different webforms in one page without extra access

I searched a lot and did not find any good advice, so I ask support form community. please help ! . Suppose this scenario and suggest me what should I do ?! . I have three webform > Webform A, ...
0 votes
0 answers
93 views

Action of webform displayed in modal opened by OpenModalDialogCommand in AjaxResponse

I'm trying to open a webform in a modal by using OpenModalDialogCommand in an AjaxResponse like this. in buildForm method, I'm specifying AJAX callback like this: $form['actions']['submit'] = [ '#...
0 votes
1 answer
43 views

How to query webform submissions table

I have a webform which contains a field of visit_date, and 3 fields of time selection visit_time_1,visit_time_2 and visit_time_3 which at least one must be filled and they cannot have same time with ...
0 votes
0 answers
23 views

How do I show sets of questions based on the value of another field?

I am trying to create a registration webform based on the type of program students are registering for. For example if students have options to select ( School A, School B, School C, etc.) I would ...
-2 votes
1 answer
44 views

How to set an email recipient in Webform? [closed]

I need to list one recipient for a contact form I've created with Webform module. I tried to look for this in /admin/structure/webform/manage/contact/settings but didn't find where to list a recipient ...
0 votes
1 answer
15 views

Is there a way to see the date of when webforms were opened and closed?

I'm using Drupal 9 and would like to know when a webform was closed to check that we haven't had a security breach and received submissions after the form was closed.
0 votes
0 answers
14 views

How do I insert the corresponding text content from source into email based on selection?

I have run into a wall trying to find a solution to this problem and am hopeful someone here may have some feedback or ideas. (I'm on Drupal 8 btw) A department in my organization wants a form with a ...
0 votes
0 answers
18 views

How do I include a list of nodes in Webform, with multiple fields per node / views row?

In a Drupal 7 project, I had used the webform_view (https://www.drupal.org/project/webform_view) module to list a number of nodes in a webform with a "quantity" and "size" field ...
0 votes
0 answers
20 views

Adding custom field and pdf print option to Webform Submission information

I have a requirement to add a select list containing yes/no to a webform submission view form and make it available in Drupal views, is there a way to add a field with a dropdown and with print option ...
1 vote
1 answer
11 views

Column of owner of webform submission in database

I need to find the column of the owner (user_id) of form submission in webforms. I need it in order to create some complex queries for the needs of the client. I looked in webform_submission_data and ...
0 votes
0 answers
23 views

Unable to get Webform Submission data

I'm working on displaying specific webform node submissions in a view, while trying to create a view for the webform submissions to access specific data, the views field "webform submission data: ...
0 votes
1 answer
23 views

How to avoid submissions with the same e-mail address?

How can I prevent that someone submits a form with the same address in an e-mail field again?
1 vote
1 answer
30 views

How do I perform a "contains" match with #states?

I use the same form for different events. Previously I have set up a conditional email to be sent based on the exact title of the event. However, I would like to have the conditional email be sent ...
  • 11
0 votes
0 answers
13 views

Display deltas in multivalued field labels via token in a webform

Is it possible to display field deltas in multivalued fields of webforms? Single <input> Multiple value Label 1 <-----here <input> Label 2 <input> ... Label N <...
  • 77
0 votes
1 answer
43 views

Honeypot hidden field in webform template "webform--contact.html.twig"

Honeypot is active on my site (Drupal 9) for all forms. When I created the template file for the contact form "webform--contact.html.twig", I can't get the honeypot default hidden field &...
0 votes
0 answers
19 views

Adding a custom value for Webform email

Using Drupal 9 and webforms module. I have a webform with a hidden field. The hidden field has an array of NIDs being set through cookies. On form submit, the form email has to include all the ...
  • 35
0 votes
0 answers
27 views

Custom Composite formatTextItemValue

I created a Custom Composite, but I have some display difficulties. <?php namespace Drupal\dvc_composite\Element; use Drupal\Core\Form\FormStateInterface; use Drupal\webform\Element\...
0 votes
0 answers
28 views

How can I programmatically access the multistep form IDs?

I have created a multistep form which has 2 forms: company_details and contact_details. function webform_form_alter(&$form, FormStateInterface &$form_state, $form_id) { if ($form_id == '...
2 votes
1 answer
40 views

Show webform textfield conditionally based on "radio other"

I have a webform "radio other", with options like "1, 2, 3, more". For "more", "radio other" is configured to add a textfield for custom values. Now the problem ...
  • 27.5k
0 votes
1 answer
38 views

Why isn't possible to save revisions of the form design as draft?

Apologies if this is repeating a previous post. I have been using the webform module for a few years, mainly creating and managing web forms for clients. The situation I have encountered with webforms,...
  • 3
0 votes
1 answer
24 views

How do I manage select options on a multi page webform?

With a multi-page webform. Page 1: choose country Page 2: choose industry Page 3: choose from a list of people that support the country and industry. #validate handler added $form['#validate'][] = '...
  • 1,393
0 votes
0 answers
15 views

separate permissions for annotating or editing webform submissions?

Is there a way to configure webform admin access that allows annotating/flagging but does not allow altering data submitted by (possibly anonymous) users? I set up a simple webform. I gave a role ...
  • 149
0 votes
0 answers
32 views

In drupal9 how to pass field values from page 1 to page2 in webform module? [duplicate]

I want previous page values in next page in webform multistep form. E.g. If I've entered a value say First name: "Tara". And then clicked on next button. Then in next page the first name ...
0 votes
0 answers
41 views

Allow webform 2 when webform 1 submitted

i'm trying to understand how allow a webform based on sumbission of another. My Drupal site users have to compile two different forms. The first contains the user's account information and the second ...
0 votes
0 answers
25 views

Submission getData() result not include entity reference element

Webform submission getData() result not contain entity reference element. $values = $webform_submission->getData(); $values does not include all element values. Not include the entity reference ...
0 votes
1 answer
40 views

Can't access download page for webform submissions

Basically, we're running into an issue where we're being returned a HTTP error 500 when trying to view the webform submissions download page, i.e. the following page: https://www.hartmanns.dk/en/admin/...
1 vote
1 answer
137 views

Twig filter on Webform Computed Twig element

I have a webform where I am gathering information on multiple questions (q1, q2) using the Image Select input type where each option has a value of 0,1,2,3 or 4. I then use a Computed Twig Element ...
0 votes
0 answers
82 views

How to implement custom Composite element with radios dynamically populated by AJAX

I am trying to develop a custom Composite element with radios and AJAX functionality. Going to explain the logic first. There are Volunteer Opportunities (nodes) in the system with some fields. The ...
  • 1
0 votes
1 answer
23 views

How to show associated options with the "Entity select element" when using Webform + Webform Node

I have a webform with an Entity select element. The referenced item is a content type (for example: product). This Product content type has 5 nodes (product 1, product 2 etc.). When viewing the ...
  • 43
0 votes
1 answer
53 views

Custom handler for custom message

I have a Webform (6.x) with style Cards, and Ajax. I would like the users to be able to personalize the message shown as confirmation of the form, with paragraphs and the like. With a regular webform ...
0 votes
0 answers
16 views

How to transfer field_img_1 field_img_2 field values to the web form template field_my_webform

How to transfer field_img_1 field_img_2 field values to the field_my_webform web form template (webform-submission-form--web-form-with-images-for-each-step.html.twig) ...
0 votes
1 answer
106 views

After installing webform, unable to use composer

The crux of this matter is that composer is now not working. I get the following when I try to run almost any composer command. (This Drupal 9 site is a composer installed site, and I would like to ...
0 votes
0 answers
7 views

How can I add Salesforce pick-lists?

In Drupal 7, you would go to your webform, add an element, and choose Salesforce pick-list as the type. Then on the options screen, you would tell it which pick-list to use. We cannot find anything ...
0 votes
0 answers
26 views

IMCE file manager in webform is blank

I am trying to insert images in my webform's Advanced HTML/Text element and this is what happens when I click imce image icon to upload images. It doesn't display anything but a blank (black) screen. ...
  • 1
1 vote
0 answers
46 views

Edit webform submission secure token url

I would like to change url for secure token. Now it /webform/MYFORM/submissions/sid?token But i would like to change it to /submissions/sid?token I use these instructions https://www.drupal.org/...
  • 11
0 votes
1 answer
34 views

Webform 4 passing in email token into the redirect url confirmation page

This is for Drupal 7 and webform 4. I'm trying to pass in an email token value submitted from the previous webform page into the confirmation url. But it shows up blank. And the token browser dialog ...

1
2 3 4 5
51