Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
12 views

How to edit $form_state of a webform form inside controller function?

Inside the controller function of my custom module, I am trying to get the $form_state of a webform form, so I can edit it before it is built. (hook_form_alter does not work, as it needs to be altered ...
0
votes
0answers
9 views

Current submission value with php [on hold]

I am using webform 2 pdf module, where I want to customise the content, that depends on the submission results. Now I have a code, but it brings all the submission records, altought I only need the ...
0
votes
0answers
8 views

Email multilingual difference between sender and recipient

In a multilingual site with translated webform option fields (Radios) a user X (sender) with current language for example 'english' want to send this form to user Y (recipient) with another (unknown) ...
0
votes
1answer
19 views

How to go from View to Webform, submit Return to View

User is working a list of names with Views... select a link on the view to open webform, submit the webform. Then I would like to return the user to the view.. Where he can continue working the list ...
-1
votes
0answers
19 views

Sending Webform Data to a third party analytics tool

One of our 3rd party analytics tools need access to webform submissions data (Form name, submissions entries, date etc ). Could anyone please suggest any drupal web service that could provide read ...
-3
votes
0answers
16 views

Display Confirmation form in webform [on hold]

I have created one web form with a multi-page option. I have a requirement to show confirmation page/popup when submitting the form. The pop-up should like below image . I need a popup like this ...
0
votes
1answer
14 views

Webform field options missing Entity Reference?

We're using Webform 3.27 in Drupal 7 (not my call, don't yell at me) and it looks like one of the field type options should be Entity Reference, but we don't have that option. Not sure what's going on ...
1
vote
1answer
38 views

Add captcha to webform

I'm working on a drupal 8 project, I've created a webform and trying to associate a captcha to my webform using captcha contrib module. I've a personalized template for my webform in which I render ...
0
votes
1answer
29 views

Send email notification for the new created survey using webform

I'm looking for a way to send email notification to all my users once my scheduled survey is already open. Upon checking the Webform module, all I can see about email notification is when a user ...
4
votes
4answers
44 views

Create a webform which creates a user account

I'm looking to create a user registration form on a Drupal 8 site that has multiple clearly defined sections (possibly on separate pages). I've explored doing this with the standard Drupal ...
0
votes
1answer
26 views

Webform submission values with PHP

I am using webform 2 pdf module, where I am trying to set up a custom content to the pdf file. I would like to acces the webform submission data, but I have no idea how to do it. Basically I would ...
0
votes
0answers
10 views

Use multivalue field collection on a webform

I want to build a field collection and give the opportunity to the user to add more than one field collection. The field collection is named Office and it contains the fields Desk, Chairs and ...
0
votes
1answer
16 views

How to load a webform via ajax inside custom JS?

I'm trying to load a webform block via ajax. Right now I have: $.ajax({ url: '/form/contact-us', success: function (response) { console.log(response); }, error: function (...
-2
votes
0answers
22 views

How to validate a webform at server side [closed]

In my Drupal8 website I have a webform and I have developed a custom submit handler to submit the data to an external API, I can't use the remote post handler because I have to check the data before ...
0
votes
1answer
61 views

How do you store webform submits to a different database?

I have a client requirement where "user generated content", in specific, webform submissions from the public, need to be stored in a different database from the normal 'one' database approach. How do ...
0
votes
1answer
71 views

Editing webform results and webform submission views doesn't change anything

Using Drupal 7 with webform and views. I'm trying to modify the native webform results and submission views, but for some reason the changes don't apply, I cleared the cache, checked all permissions, ...
0
votes
0answers
35 views

How to handle multiple submit handlers of a webform

I have a webform and added a custom submit handler using a plugin and added another remote post post handler I want to add the submit data to my custom table and if the data is saved successfully then ...
0
votes
1answer
21 views

Webform Fields not hidden anymore after update to 8.x-5.0-rc19 [closed]

After updating to Webform 8.x-5.0-rc19 fields that should be visible only after filling another field, are instead always visible. I guess this has something to do with "Elements, containers, and ...
0
votes
0answers
10 views

submit message in webform twig

what variable use in twig to print the success post pos submit? and how do I know the form has been submitted?
0
votes
0answers
13 views

How to expose webfrom content in a block?

I'm building a multi page webform in Drupal 8, and I need to show a summary of content entered on the previous pages in the sidebar. I planned to have a block that exposes values from the form. Is ...
-1
votes
0answers
21 views

How can I display the average overall ratings webform?

I have build a rating form with multiple rating fields using Webform D8. Now I want to display the average of the ratings the users have posted. how to display the overall average rating of all the ...
0
votes
0answers
21 views

Count how many items were filled in custom composite multiple

I have a webform with custom composite multiple. I need to know how many items user filled while submitting the webform.
0
votes
1answer
13 views

Can you export and import templates for multi-site use?

Is there a way to take a form built on one site, save it as a template, and use it on another site? Currently all themes and modules are shared so I assumed the Webform Tempaltes would be available on ...
-2
votes
1answer
52 views

How to display a token in plain text (without link)?

I created a form with the module "Webform" on "Drupal 8". In the form submission email, there is a token: [webform_submission:values:profil:entity:field_personnel_sexe] In the inbox, the term ...
0
votes
0answers
21 views

How to load forms with selected options in webform preview page?

Anybody help: How to load forms with selected options in webform preview page? I am using drupal-8 and trying to load the complete form with all the fields/text boxes with the selected value there. ...
0
votes
0answers
11 views

How to Assign 'Edit webform Twig templates' permission

I am creating a webform and I am trying to add a Computed Twig element. Under Computed Settings: Computed value/markup, where I want to add my code, it gives a warning message that says "Only webform ...
0
votes
0answers
24 views

Programmatically submit webform with a file upload

I am developing a Drupal site with a React front-end. I have been using Webfrom with Webform REST for form submissions without any issue. I have a new webform which has a file upload field and I ...
0
votes
0answers
30 views

Registration via Webform

i'm trying out different ways for users to register at my website. The basic Drupal-Fields and Options don't fit my needs. I need fields to pop up when the field above is filled, accordions and stuff ...
0
votes
1answer
19 views

How can I get uploaded files sent to webforms to be attached to an email?

In Drupal 8, uploaded image files sent to a Webform are uploaded to a private area. The image files are referenced in the email that is sent to the administrator for that form, but unless they are ...
0
votes
0answers
15 views

Override Webform time limitation calculations in WebformSubmissionForm::checkTotalLimit()

Not too long ago, Webform added functionality that allows you to restrict the number of submissions that can be made to a form for a specific amount of time, either for the webform as a whole, or by ...
0
votes
1answer
41 views

Trigger Emails/Handlers on Webform submissions update

Is there a way to trigger the Emails/Handlers, When webform submission has been updated. I'm using webform_mailchimp as a handler. When I'm submitting a new record, handler is working fine and I can ...
0
votes
1answer
17 views

Adding contacter's email to reply field in contact form email

In Drupal 7, when someone used our contact form, we would receive an email and could click "reply" in the email we received and have their email be in the "to" field. Since upgrading to Drupal 8, our ...
0
votes
1answer
25 views

Error sending e-mail when using webform

I know there are already several posts about this subject, but I couldn't find a similar problem. I have several webforms on my site. Each webform has an email action, sending an e-mail to only one ...
0
votes
0answers
32 views

Webform image select element is dispalying another image while used in webform handler

In drupal 8, I have created a custom webform handler to create a new article node and copy the data and images from the webform element to the created article node. In both artcle node and contact ...
0
votes
0answers
17 views

How to copy results of a view into a webform

Does anyone have a suggestion as to how I can 'flatten' a list that has been created by views and pass it into a webform text field unchanged? Basically, set up so far is this: Using VBO, user is ...
0
votes
1answer
25 views

Webform default validation message altering

I am working with drupal8 site.Here i want to override the default "The email address %mail is not valid" email format validation message.I have checked with hook_form_alter to implement this.But no ...
0
votes
1answer
22 views

How to add a new webform submission formatter for the webform components

I'm just wondering how to add a new option to the webform submission formatters for a specific element? is it driven by the field API?
0
votes
0answers
18 views

Email gets empty values

I have created a web form form and configure email setting for that but it sends the empty values in the email. Here's my form: http://www.harvardstreet.org/request-appointment Here's my form ...
0
votes
1answer
52 views

Use of Twig template for webform email

I'm trying to help my father out by building a webform (D8 version) for the 4 theaters his Old Abbey Friends are putting up. I've made the webform, now i'm setting up an email handler so that ...
0
votes
0answers
44 views

Set WebForm remote post handler to internal URI

I'm trying to send submission data to an internal URI (http://my-site.local/my-url) using a "remote POST Handler". If I try to reach the URI via browser it works fine but the form submission ends ...
0
votes
0answers
40 views

How to prepopulate WebForm Entity autocomplete fields with node multivalue taxonomy term field?

I've a node of content type "Interview", with a WebForm field named "survey". This form field has an Entity autocomplete (taxonomy, multivalue) field "keywords" that points to the vocabulary "Keywords"...
0
votes
0answers
20 views

Howto check if a form contains custom type field in hook_webform_submission_form_alter?

How to check if my custom element is added to form in hook_webform_submission_form_alter. Below is the screenshot what i am getting in form array. Custom composite element can be nested under 3 or 4 ...
1
vote
0answers
30 views

Add custom fields to an existing entity

I would like to add extra fields to an existing entity WebformSubmission : Assigned to (entity reference to a user) Status ( taxonomy term reference) for these two fields I will need it to be ...
0
votes
1answer
45 views

How to create a link from node view and pass information to a webform

In Drupal 8, I have a webform field attached to a node with the Link to form formatter enabled. Can I add the ID of that node in the Link custom attributes (YAML) textarea to display a block view of ...
-3
votes
1answer
29 views

display webform table data based on serial no

i want just like for example display hospital based on location webform data from webform storing data of all hospital. How to fetch data from webforms table and display it on page just as searching ...
1
vote
0answers
44 views

How to pass Webform elements from controller to custom twig template

I'm pretty new to Drupal and probably this is simple but I got stuck with this. What I'm trying to do: I have created a custom module where I have defined a custom route to display my webfrom in ...
0
votes
1answer
29 views

Empty field value showing in webform email content

I have a file attach field in my webform. When i have submit my webform without this field,in my email content showing like "ATTACHED FILE: [webform_submission:values:attach_file]". I have checked "...
0
votes
0answers
30 views

Dynamic options/values (by ajax depending on choices / changes on other fields)

What would be easiest way to have dynamic radio buttons on Webform? By dynamic I mean that the options can change upon changing other controls without submitting. I think easiest would be to use ...
0
votes
0answers
22 views

Create custom email subject

So, I know how to use the tokens from the webforms to add them to the subject of the email confirmation that is sent out, but I am wondering if it is possible to automatically include the user's ...
0
votes
0answers
12 views

How to add an error message after checking the form in the right place?

There is a form component on which I added a function <?php $form['submitted']['tel']['#element_validate'][] = '_custorm_validation_form_validate'; ?> in the function itself wrote the ...