Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [webforms]

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

0
votes
0answers
33 views

How do you get and submit a webform in React?

I am planning to build a Drupal 8 site fully decoupled using Gatsby (a site generator for React). So I will use Drupal only to structure (content types, paragraphs), enter and update all the content ...
0
votes
0answers
14 views

Changing the HTML of Webform Confirmation popup

I want to override the default HTML that loads on a webform confirmation popup but couldn't find a hook for that. Can anyone help ? Thanks, Yaron
0
votes
0answers
26 views

Print a webform submission from a printer after successfully validating and saving it [on hold]

Drupal 8.7.1 site connected via bluetooth to a printer device. I have use case where I need to print a webform submission after the user has successfully submitted the webform. I have searched too ...
-4
votes
0answers
12 views

Progress bar in multiple step webform supports linking to next pages via the progress bar Drupal8? [closed]

i want to make clickable progress bar for next steps in multiple steps webform in Drupal 8. Anybody help me how to do this?
-5
votes
1answer
45 views

How can I get likert element title and descriptions of the questions in webform submission handler? [on hold]

How can I get likert element title and descriptions of the questions in custom webform submission handler? getData() gives only questions and answers, is there another method? Webform 8.x-5.2
0
votes
0answers
14 views

Webform 8 - How can I make a text field value be A if a select value is 1?

In Webform 8 I am trying to figure out how to populate a text field with a value based on what is chosen on a drop down. For example: Select Value are states If user selects Deleware then the value ...
2
votes
1answer
64 views

Is there a “best practice” for overriding a contributed module's controller in Drupal 8?

I'm still relatively new to Drupal 8 and recently I came across an occasion to override the WebFormSubmissionListBuilder Controller. I eventually found another project which had exactly the same need ...
-1
votes
0answers
17 views

Want to upload my Webform submission files to S3 bucket

I have created a custom form in Drupal 8, the form contains upload file field with some sensitive information, we want to upload the submitted file to S3 bucket. I checked some modules for S3, since ...
0
votes
1answer
30 views

How do I a custom entity operation with a webform submission?

My lack of D8 experience is going to show by just how many unknowns I have here. I hope someone can link some of the pieces for me. I created a custom action using hook_entity_operation_alter() on ...
-1
votes
0answers
13 views

webform Custom composite field copy values from first row to next rows when click on + button

Can we able to copy the values entered in first row to next rows when we click on +/Add button in Custom composite field in webform I need somthing like below .
-4
votes
1answer
26 views

Use computed twig to get last item in a multi value composite field [duplicate]

I want to use a computed twig element in a webform to give me the value of the last item in a multi value composite field. the name of the field is destinations, and it has a departure_date field and ...
-2
votes
0answers
32 views

How do I send a link from a webform that automatically logs the user in?

I want to send a link via an email that will automatically login the user and redirect them to the webform i want them to view. I cant find how to do that with drupal 8. I see some answers for ...
-1
votes
1answer
18 views

how to add a “preview” button to a webform submission

I am using version 8x-5.2 of webform. I cant see an option to add a preview button. Can someone explain where to add this button, or do i have to use a later version of the webform module to get ...
0
votes
1answer
23 views

How to get text from radio option value

How do I get the option text from the submitted value of the radio field in Drupal 8 webform submission? I have written a rule action condition on webform submission where I am storing data in a ...
-2
votes
0answers
20 views

how to alter the drupal webform data before post to other url

I have a drupal webfrom with one radion button input and another one is number input and i am posting the from to outside url and my question is i need to aissign number input value to radio input if ...
1
vote
1answer
36 views

Show certain elements based on URL query string

I am very new to drupal and also very willing to learn. I am trying to migrate old code from another tool to drupal 8. I am working on a form, using the webform module. Can I possibly show certain ...
0
votes
0answers
11 views

use token from View field item to populate Webform element

I have a View page set up with a list of fields from a content type "parts"' The content type has an entity reference field with a webform "request parts info" and a field "field_id_number" I was ...
0
votes
0answers
21 views

add custom class for each field of a form

I am trying to create a custom class for the fields based on the title display dropdown for each field, and I have it most of the way working. I was wondering if anyone might have any ideas on this. ...
0
votes
0answers
25 views

Can I prepoulate webform form fields from a context e.g. url or other parameter?

Using Drupal 8 I need to inject some contextual data into a webform from the uri, or other variables if possible. Is it possible to pre-populate a webform using the admin interface?
0
votes
1answer
25 views

Can't submit data when rendering a webform programmatically

I'm working on a Drupal 8 project, when trying to load a webform programmatically in a controller, the webform is rendered correctly but when data has been submitted no values founded on webform ...
0
votes
0answers
35 views

How to theme webform's Custom Composite element?

Is there any chance I can move specifics sub-element to Custom Composite? Either, I couldn't find any way how to use flexbox inside in a custom composite. For example, I wish to have; [First name] ...
0
votes
1answer
21 views

How can I use a content type field on the body of the e-mail message template on the Webform module?

For usability matters, I would like to let the editor create his own confirmation message on my Event content type. So I create a field for that. I also have another field to select which webform is ...
3
votes
2answers
80 views

Alter webform messages found in WebformMessageManager

List item Is there a way to change the hardcoded webform messages from /webform/src/WebformMessageManager.php? for example, the one on line 284 case WebformMessageManagerInterface::...
0
votes
1answer
112 views

Programmatically auto-submit a Webform after visiting its URL

I am wondering whether it's possible to programmatically auto-submit a Webform after visiting its URL and to save the user from a 'submit' button click. The below webform can be accessed via /form/my-...
1
vote
1answer
35 views

Theme hook not found

I have a custom module that implements a webform handler. I'm seeing this error in my Watchdog log when I navigate to admin/structure/webform/manage/myform/handlers: Theme hook ...
0
votes
0answers
11 views

Remove “Upload” button in Webforms and upload on submit

We have a webform that must be open to anonymous users. Users can upload a file to the form, and we found out that some users abuse this option and keep uploading files to our site without submitting ...
0
votes
0answers
28 views

How to alter local tasks (aka tabs)

I am following the info here to alter 'Results' page for my webform. I want to do exactly what is given in the example on that page (make the table view the default, remove the 'Submissions' tab. I ...
1
vote
1answer
26 views

Programmatic list of Webform elements?

I am building a D8 module that, for configuration, needs a list of webforms and their fields (just the entity reference fields, but I am not picky) I can get the webforms with this: $webforms = \...
1
vote
1answer
18 views

Webform Issue with Drop Down and Key not Equaling Value

I have written a custom handler in Drupal 8 D8 that grabs submitted data from a webform and reformats it and sends it to a JSON webservice. That is all working perfectly. My issue is that the ...
0
votes
0answers
13 views

Rule on bulk webform submissions update

I have a custom view with webform submissions with views bulk operations field. My target is when I run a bulk operation to the submissions that I have selected then a rule must be triggered which ...
0
votes
0answers
24 views

Characters Converted to HTML Entities in Submission Email?

I have a webform in which I've developed a custom module to add a value to a hidden element based on inputs received by the person submitting the form. I also have an email handler specified that ...
0
votes
1answer
41 views

How can I add custom client-side validation to a Webform field using advanced custom properties?

The setup: I have a Drupal 8 form created manually, and I would like to recreate it using Webform module. So far, I have managed to recreate everything (required fields and submission handler), but ...
1
vote
1answer
45 views

Some basic questions about creating a webform handler from the module webform_example_handler

I'm "cutting my teeth" in Drupal 8 on the Webform module so these are going to be rather naive questions. I need to programmatically fill a URL field in the form with an XML file that I generate from ...
0
votes
0answers
9 views

How do I trigger a Webform email when a checkbox state changes?

I have an event registration webform with a checkbox set up as "we've received payment", which is unfilled and hidden to the registrant when the webform is first filled out and submitted. I want to ...
0
votes
0answers
25 views

Drupal 8 Webform conditionally send results to specific emails

Hello Looking for some advice on how to deal with sending conditional emails. I did some research and it can be done in Drupal 7 with Rules but since I'm new to Drupal 8 I haven't been able to figure ...
0
votes
0answers
14 views

Maestro Webform Integration. “Field langcode is unknown.” when trying to run Orchestrator

I'm on Drupal 8 trying to add a simple workflow to a contact form. I have implemented this locally with Maestro Webform integration and it worked out alright. When implementing this on my server, the ...
-3
votes
1answer
28 views

Wysiwyg editor for webform 5

Is there a way to configure textarea fields in Webform 5 to use Wysiwyg editor ? preferably without coding and overlay capability (I mean something like https://www.jqueryscript.net/form/jQuery-Plugin-...
0
votes
1answer
64 views

Get the node ID value after submitting an attached Webform to that node

I have a Webform attached as a field to a specific content type. After the node is loaded and the Webform is submitted, I am using the below custom webform handler to get the $webform_submission ...
0
votes
0answers
13 views

Show Description Field on Individual Webform Submission Result

I would like to include the description field when viewing individual webform submissions for each component. The standard webform individual submission display shows the label and the answer, but the ...
2
votes
1answer
49 views

Get paths of all open webforms

I have a project to QA all of our open webforms. We have about two screens (using the default pager) of open webforms. The simple-but-hard way is to copy each link, but I wonder if there is an ...
0
votes
1answer
38 views

How to get the referenced node id in a webform?

I have a webform that is connected to a node in drupal 8. When the webform loads from the node link I need to get the source entity id from url. How can I achieve that in my custom module? the url is ...
0
votes
0answers
45 views

How to use tokens in the Completed URL?

I need to send data in the URL to the receiving server so that two fields from a survey form is put in the Completed URL string. It looks like it should be possible to use tokens for this, but I can't ...
0
votes
1answer
21 views

How to add a checkbox to form builder component settings form?

I have webform and formbuilder modules installed. In the file field settings form I want to add an extra checkbox field just like the required field but I am unable to do that. I can add it to the ...
0
votes
1answer
25 views

Is there a way to to allow webforms accept case sensitive keys?

I've been using the webform module for Drupal 8, and initially it appears as though the webform submission handlers only send through submission keys as all lowercase. Is there any way to get around ...
0
votes
0answers
21 views

Webform Custom validate and element alter

I'd like to know if there is any way to: 1- Perform the validate of a webform programmatically from custom module. 2- Modify the value of some element before rendering the form from custom module.
0
votes
0answers
15 views

How can I redirect to a different page after webform submission with a custom href attribute?

I have this snippet in one of my nodes folder: node--experience.php At the moment, the section has a download button which holds a URL: // Download Info pack (PDF). if ($entry_info) { //var_dump(...
0
votes
1answer
14 views

Rules add date variable from webform submission

I have a webform where the user also submits date. I would like to populate a date type field with the submitted date. I tried making variable by "Add variable", but I do not know how to access my ...
0
votes
0answers
9 views

How to properly render and alter a webform submission edit form via ajax

This is a really hard issue to put into words but I'll try my best. In this scenario, I'm rendering a submission edit form and attaching an ajax button to run a custom callback. I'm not sure if this ...
0
votes
0answers
16 views

Load library only on webform submission pages

I've made a custom module, and I would like to load the library only on the Webform submission pages. The url looks like this: /admin/structure/webform/manage/form_name/submission/{{submission number}...
0
votes
1answer
60 views

Programmatically delete a webform submission by sid without first loading it

Drupal 8 project has a 2 webforms: Webform "ABC" Webform "123" Explanation of the process: When Webform "ABC" is submitted, a new "node" is created and the "Sid" used to create this node is ...