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
1answer
26 views

How to add custom confirmation page template for a custom URL for Webform (Custom URL for confirmation page) Drupal 8

I want to show custom message on confirmation page (on custom URL). I created a custom URL in *.routing.yml file and added a method in controller class that returns an array : return [ '#theme' =&...
0
votes
1answer
535 views

Module webform2pdf modify template

I have sereval webforms et each webform send a mail with a pdf. I would like to do a template for each webform. I use webform2pdf in Drupal 7 to send pdf by email. How can i do that ?
0
votes
0answers
22 views

How can I stop the webform submissions based on a Drupal node registration form settings fieldset?

I am using the event example of the webform module for Drupal 8. I configured on the node fields for the user to be allowed to make new submissions until yesterday. I accessed the node today, and it ...
-2
votes
0answers
7 views

Webform submission error: form ID not connected

After submitting a webform, Drupal adds to my .webform-confirmation div this line: <script>form ID not connected: 1532</script>. I also have an error in browser console: Uncaught ...
-1
votes
0answers
19 views

How to write Javascript in a webform?

How to use JS for web forms, to perform logic based on the input given by the user and display the result on another field using ajax?
0
votes
1answer
476 views

Drupal 7 Webform Components Related To Individual Nodes

I am attempting to create a decision making "questionnaire" in Drupal 7. I am currently using the Webform module to create the questionnaire. The questionnaire (webform) will create a list of related ...
0
votes
1answer
530 views

Webform onchange added with hook_form_id_alter

I have a webform on a Drupal 7 site I am working on with a form ID of 144. I have a module that alters this form to add default values to the fields within the webform. This is all working fine. I now ...
0
votes
0answers
11 views

error unsaved elements after saving in webform builder

I am trying to build a webform and it works well to a certain point. Then as I am trying to add elements and rearrange the order of them and then save, I get a message that I have unsaved elements. ...
1
vote
1answer
372 views

How do I replace part of a webform component label with a variable token?

I have webform component labels like this: Did [your pet] have any illnesses? and I want to replace [your pet] with a variable token? Do I need to write a custom module or can I do this by editing ...
0
votes
1answer
21 views

Drupal 8 : failed to create webform programmatically in hook_entity_insert

I need to create a webform programmatically when a node is created. I refer and follow https://www.drupal.org/project/webform/issues/3038697 here are the steps to reproduce: create new module via ...
0
votes
1answer
65 views

Redirect to referring page after form submission

Trying to figure out how to redirect a user back to referring page after they have completed our feedback form. So a scenario would be if im on page foo/bar and I click on feedback webform link on ...
0
votes
1answer
474 views

how to use hook_webform_submission_presave on a site with multiple webforms

I've got a question on the use of the hook_webform_submission_presave function for D6/webform 6.x-3.4 I've got a multi-lingual D6 site that has one webform for each language, I'm trying to create a ...
-1
votes
0answers
14 views

Calculate number of days between two date fields in Webform

I am using Drupal 8.7.6 + Webforms 8.x-5.4 I have two date fields in a webform and would like to calculate the number of days between them using Computed twig Please help
1
vote
2answers
566 views

How to add unique identifier to each submission?

In short, I am trying to figure out how to add a custom and unique identifier to each submission from the Webform module. Example: User fills out the Webform and submits. User then receives an email ...
0
votes
1answer
499 views

Webform in block allowing clicking on send button and redirecting to page view, without validation the fields even when they are empty

Webform in block is allowing to click on send button and redirecting to page view, without validation the fields even when they are empty. so if I come to the website and click on submit (on my form ...
1
vote
1answer
634 views

Change ID of webform hidden element

How can I change the ID of a hidden element (created with the Drupal 6 webform module) using hook_form_alter()? The ID that it outputs is something like '#edit-submitted-component-name'. I need the ...
0
votes
1answer
394 views

Exposing webform submissions for Views, but not giving anonymous users permission to view all submissions

I have a webform set up in Drupal 8 and am trying to create a View that displays certain fields from form submissions. The webform and the view seem to be set up fine and are working. The problem ...
0
votes
0answers
18 views

Webform block not display

In D8, In Block Layout, Place Block of webform of webform form, but when we see output display empty. Inspect element display span tag data-big-pipe-placeholder-id="callback=Drupal%5Cblock%...
0
votes
0answers
32 views

webform conditionals for checkboxes

I'm trying to make a webform for an email sign up. The organisation has four different newsletter options, in multiple languages. I have each of the newsletters group in a set of checkboxes. What I ...
0
votes
0answers
18 views

Webform address field order

I have a Webform with address field and other fields as well. Is there a way to alter the order of address field form elements within other fields? If so how can this be done?
2
votes
2answers
538 views

How to run custom function after clicking next on a multi page webform

I've created a multi page webform and I want to run a function after the user clicks the 'Next page' button on the first page only. After the user fills in the data on the first page, I want to grab ...
0
votes
0answers
11 views

Using “Webform Select Image” ! Where do i find the options value key?

I need to do Views filtering based on a "webform submission value" using "Webform Select Image" ! Where do i find the options value key ?
0
votes
0answers
28 views

How can I programmatically alter the item element markup?

I want to change the item element markup value with some processed text.which hook need to edit the html markup element. currently i found that there is no way to edit the markup element because it is ...
0
votes
1answer
608 views

How to remove webform error message?

How to remove webform error message? I need to be able to remove the error message form. For instance, if I have an email field and for some reason did not pass the validation is not to show a ...
1
vote
1answer
601 views

Associate an image with each checkbox in Webform

I'd like to have a graphics-oriented Webform, wherein the user will select from check boxes that have a specific image associated with each. For instance, I might have a row of checkboxes with a color ...
0
votes
1answer
50 views

How is $form['#action'] encoded?

I have the following set up: Webform "my_webform" Entity type "activity" The "activity" entity type includes a webform reference field Activity ID 14 has some content and a reference to "my_webform" ...
0
votes
0answers
23 views

Webform [submission:values]: field name and value inverted

Recently, [submission:values] inverts my field name and the value like this: TestName Name 0600000000 Phone number Do you know how to display correctly my submission with [submission:values] ? To ...
0
votes
0answers
24 views

Webform submission does not include all fields in email message

We have a webform with two sections. The first section requests information about the user submitting the form. The second section requests information about what the user is looking for. We have ...
0
votes
1answer
875 views

PHP Warning: Unknown: Input variables exceeded 1000 and how to fix

I have been working on a patch for https://www.drupal.org/project/hubspot for the 8.x version. In fact I found a ticket for this same error for the 7.x version (https://www.drupal.org/project/hubspot/...
0
votes
1answer
552 views

Calender System module and webform

Does "Calender System" only works with "content types " ? The date popup options does not show while adding a "date" type field in to a webform node . https://drupal.org/project/calendar_systems ...
0
votes
0answers
17 views

How to add custom header and footer to Webform Entity Print PDF

I have a Drupal 8 site and installed the Entity Print module, as well as Webform entity print. I want to print a Webform submission in a PDF but i cannot seem to understand how to create custom header ...
-2
votes
1answer
48 views

Error when trying to access Webform settings

When I try to go to the Structure > Webforms > Settings and Webforms I am getting the following error. I tried the $ drush webform-repair command, but that doesn't work. My Drupal version is 8.6.4. ...
2
votes
1answer
2k views

Inline Validation Messages with Webform

Sorry if this has been asked before (although I've been looking and haven't found quite what I'm looking for). It's not currently possible to present the server-side validated messages (specifically ...
1
vote
1answer
567 views

How to copy select list value from a webform submisison into select list field new node?

This is the scenario: A webform with the following fields Question -> Textfield Category -> Select options (Listbox) Listing vocabulary HETCAT A content type Question with these fields Title ...
4
votes
2answers
6k views

How to show webform as block

In drupal 7 we used to attach a webform to nodes and then we could render them as a block, nowadays in drupal 8 Webform is a dependent entity and is designed and developed on its own. now my question ...
0
votes
3answers
743 views

Webform Submission Using Rest API POST method

I just created the webform and added fields. I need to create a Webform Submission Using Rest API POST method. I just installed Rest & Rest UI modules for this. But when I try to test my API ...
0
votes
1answer
582 views

Can I attach a javascript function to a Drupal.behaviors javascript function?

I want to trigger another function any time Drupal.behaviors.MultiPage (found in field_group/multipage) changes page. It's part of this code: Drupal.behaviors.MultiPage = { attach: function (...
0
votes
0answers
20 views

how to display the image URL address for drupal8 webform? [closed]

I created a feature of selecting a picture through webform. I want to calculate which image has been selected by the branch. Note: I think about getting the address of the image, not the name of the ...
0
votes
0answers
9 views

Webform show custom composite result at their own line in submissions download

I have a webform with a custom composite field THE custom composite has one text field that can be repeated an unlimited amount of times here is an image of the form: What I want is to show each ...
0
votes
0answers
27 views

How to change background colour of webform?

I'm finishing a website that someone else started and there are a few things I can't figure out. It's a Drupal 8 installation and I have administrator permissions, but I've tried every setting I can ...
2
votes
2answers
408 views

How to add field to ALL webforms?

How do I add a field to all webforms? I have a website where I'm using webform for surveys and I want that on each survey there will be a field that is the same in all of the nodes/webforms. Thank you....
1
vote
1answer
596 views

How do I programmatically export all webform submissions into a single csv? (multiple webforms)

I have hundreds of webforms created from a single webform template. How do I programmatically export all webform submissions into a single csv? Note that this is not possible via views out of the box. ...
0
votes
0answers
11 views

How to allow access to Webform Submission Grid results to Role

Giving admin privileges to sales dept seems bad. The Webform Customized submissions is super! However I am unable to create a link for my Sales manager to view the same data without giving admin ...
6
votes
1answer
897 views

Upload multiple files through a single file dialog?

In a Webform, I want to let the user upload multiple files via one call of the file dialog. I found the following modules. Webform Multiple File Upload Webform Multiple File With either of them, I ...
0
votes
1answer
654 views

How to download the files data attached to webform

I have webform with text fields and file upload field. How can i download the all the documents which was uploaded through this webform.
1
vote
1answer
641 views

Webform Localization does not work

I have downloaded the Webform Localization module from Drupal.org, but it is not working to translate form, and I want to keep a single webform across all nodes. How can I do that?
1
vote
1answer
638 views

How to Display Image after submitting webform in the confirmation message page

I have added field as file in webform so that we can add image in this file field. Now i want to display next page after submitting image file by using following code [submission:values:image_file] ...
0
votes
1answer
581 views

Computed value on multipage Webform

I have multipage webform. I want to compute the value of the component (Hidden -type) which is on the second page based on the data submitted on the first page. I'm using hook_form_alter and added my ...
1
vote
1answer
943 views

Enable CKeditor on Webform's textarea

I'm trying to create a contact form supporting HTML formatting with Webform and CKEditor. So I created a new webform with a single field of type Textarea and now I have a simple webform with the basic ...
0
votes
0answers
15 views

How can I read/write webforms in DB7 from an external database?

I have a staging and production environment which holds my drupal instance. When ever I launch changes from staging to production I run into the issue of losing submissions that are coming in from the ...