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
-2
votes
1answer
20 views

Drupal Webform View Form Submitted data to user

I want my users to view their submitted data after submission to let them know what they submitted. How can I do this? Please help!!
2
votes
1answer
22 views

Send email only if a field has a certain value

I am using webform in Drupal 7 and have a case where I need to send an e-mail only if a certain select field has an option selected. I have installed Rules and Webform rules but am a bit stuck on how ...
-2
votes
0answers
33 views

Calculate difference between two dates results in negative result

i'm trying to calculate a difference between two dates in a computed twig form field but I always get a negative number when the end date is in the next month after the start date because (i think) it'...
0
votes
0answers
19 views

How do I format the display and submission format of a datetime field in a custom composite?

on a Drupal 8 webform, I have a datetime entry which works fine and I can format it in settings. When I create a custom composite with a datetime in it, I don't have the same formatting options as ...
0
votes
0answers
10 views

Previous webform submission value available as confirmation message token

How would I render a previous webform submission value in the confirmation message using a token? Current webform submission value is easy e.g. [webform_submission:values:my_element_key] (I have ...
0
votes
1answer
29 views

How can I catch an EntityStorageException exception?

I have a custom Webform Handler that submits a webform to an external SOAP api. Once a user submits the form, the data is sent to the external api, my custom webform hidden field 'error' is updated to ...
-1
votes
1answer
7 views

Webform Query Confirmation Email Tokens Not Passing

Has anyone else encountered this behavior? I can pass static tokens but not values using [current-page:query:?] in the Webform 8 Confirmation URL. I'm trying to append an email address. If I use: ?...
0
votes
0answers
19 views

Is there a way to get tokens from webform fields?

I have a few hundred Drupal sites in which I need to submit webform submissions to multiple outside vendors via an email that contains XML tags. For example: <PREDEFINED_TAG_FROM_VENDOR>[...
0
votes
0answers
17 views

Webform Confirmation Page URL alias tokens

From several things I have read, it seems like I have this correct, but it doesn't seem to be working. On my form settings page under "Confirmation page URL alias", I have: /quote/thank-you?loc=[...
0
votes
1answer
48 views

How to render element array piece by piece

I have template form.html.twig Drupal commerce is using it to render cart form. I made override of that template, to be able to change it only for cart form, without affecting other forms. That part ...
0
votes
0answers
11 views

Webform using latitude and longitude from algolia places as context parameter for entity reference view

I have a webform in which I use a location field (algolia places). By typing the address into the field I'm getting the latitude and longitude values provided by the library. Now I want to start a ...
0
votes
0answers
13 views

How can a user jump to a specific page, and preferably to the last page they were on? Webform 8.x

My customer has two 21 page forms. It is unlikely that anyone will be able to complete the whole thing in one sitting. I have turned the draft feature on. It would be really nice if they could return ...
0
votes
2answers
37 views

Download file after filling a form [closed]

On my site, the visitors can download whitepapers as pdf. I would like to gather some information before handing over the file. Updates: the downloads should be open to unregistered users What I ...
0
votes
0answers
25 views

How to print multi step webform current step number from webform page template?

I have template named page--webform.tpl.twig which is kind of wrapper for multistep webform. I would like to print current step of the webform from that template. Is there a way to access current ...
0
votes
1answer
22 views

How can you prepopulate a field based on another field's value?

this one was easy in Drupal 7. I defined a condition "If field A has value B, then field X will automatically get value Y". How can I get this working for a Drupal 8 webform?
-1
votes
0answers
14 views

Webform title above the input field [duplicate]

I have tried for days to get the title in a form to display above the input field, but whatever I use (Default, Before, Inline) I get the same result. What can I do to fix this?
0
votes
0answers
21 views

AMP page with recaptcha on webform

I have an AMP page with a webform on, and a recaptcha v2 before submit it. But with AMP, only recaptcha v3 is available (because v2 add an additional script, and it's not accepted by AMP). So I ...
-1
votes
0answers
16 views

Webform submission on node or custom entity add/edit form

I need to have a webform submission stored with a custom entity...i.e. one submission managed through the add/edit form. I added the webform using the various options provided in the webform cookbook ...
-1
votes
0answers
27 views

Styling webform

I am new with drupal 8 and have started with some content and a webform. I have managed to put the webform in a page content, but it doesn´t look good. I want the titles above the form fields, but it´...
0
votes
0answers
22 views

prevent webform reloading the page on submit

I have a web form block displayed in a custom modal, Is it possible to submit the form without refreshing the page, followed by a message saying the webform has successfully been submitted? I've set ...
0
votes
0answers
22 views

How to add autocomplete tag in Webforms module

According to the accessibility guidelines fields like email or name need to have an autocomplete tag like, autocomplete=on. I found the option to turn autocomplete on and off in webforms in the ...
-1
votes
0answers
11 views

how to add text filed at preview page of webform in drupal 8?

How to add text filed at the preview page of the webform in Drupal 8?
0
votes
0answers
15 views

Skip form steps

I have created a drupal multistep webform and for smooth page transitions and better server load, etc i am using the module webform_ajax. On my webform i am using a progressbar which is similar to ...
0
votes
0answers
20 views

“Add another” for many fields together, but collapsible

I need to collect information about multiple people - an unlimited number. So this means I need an "Add another" capability. [Think Field Collection or Paragraphs.] The only element I see that has the ...
0
votes
0answers
11 views

Column Select Option not available for csv download in drupal 8 webform

I'm not able to find any column select option to download my drupal 8 webform submissions in csv format. But if I select HTML Tables, then I get the Column Select Option dropdown. Is there any other ...
0
votes
0answers
13 views

8 - Use Webform character/word count outside of Webform

I'm trying to add a word count to a textarea in a node edit form. We also have webforms which has this built in. But it doesn't seem like it'd be easy to apply that to a textarea field outside of ...
0
votes
0answers
17 views

Webform submissions taxonomy term view

Working on a new Drupal 8 site. I have a taxonomy vocabulary called Affiliates, and all users are tagged with a single Affiliate. I'd like to create a view that shows all webform submissions for that ...
1
vote
1answer
42 views

Use Webform as Module Config Page?

I am building a module that will create webforms for use with the Commerce Webform Order module. These must be somewhat constrained in their structure, so I have developed a form (using FAPI) to ...
0
votes
0answers
19 views

Solution for Job application form with file using NUXT + DRUPAL

Ok, so I am working on a project (Using NUXT.JS for frontend) for a company where I need a job application form. I am using Drupal as headless CMS. Everything is fine so far. I have created multiple ...
0
votes
1answer
20 views

Email by Taxonomy Term

For Drupal 8 webform, I see there's a way to specify custom email recipients based on a Select component. But I don't see a Taxonomy term reference as an option in the email handler. Is there a way to ...
0
votes
1answer
28 views

Route not found error when using webform_rest to upload files

I want to upload a file using webform_rest API as described here. #2899902. But it gives me 415 Unsupported Media Type error as you can see in the screenshot. Here is my code methods: { ...
0
votes
1answer
67 views

How can I access webform submission values from webform-confirmation.html.twig

I have a webform with Inline confirmation, AJAX enabled and saving of submissions disabled. Is it possible to access the submitted values from the webform-confirmation.html.twig template? I know ...
1
vote
1answer
28 views

What is the proper way to show a visitor an error?

I'm using a custom submit handler for a Webform, which POSTs important form data to another API. That part works, but on occasion there may be random network errors that prevent a successful ...
-3
votes
0answers
26 views

how get I come previous node title on webform

I have a content type and there is a registration button and this button link to the webform, but I can't show what content is. There are lot of node and I get node titles on a select list but I want ...
-1
votes
0answers
23 views

Webform error in webform_submission entity type

I am getting this error on a migration of a site from server to development. I can see there was some work to patch this but cannot find a solution. views module Update limit_operator_defaults ...
0
votes
1answer
16 views

Webform file upload with condition

I have a webform with file upload element. This works fine as long as the file upload element does not have a condition tied to it. Without the condition, one can see that the selected file was ...
0
votes
1answer
22 views

csv file imports only the last row when imported in drupal 8 webform

I have a csv file which contains the entries from drupal 7 webform. I uploaded the csv file in drupal 8 webform. It imports the data, but only the last entry is shown in the drupal 8 webform's results....
0
votes
0answers
17 views

Webform - how to set validation error on component inside a composite component?

I have a webform with a composite component that allows multiple rows to be added. The structure is something like this, in case that makes it clearer: webform sample_details - composite component ...
1
vote
2answers
31 views

How to not include page titles in the webform included email values?

My webform has pages and sections in a webform. The title of the page is not printed out on screen, but it is printed out in the email. The page name was setup as being the same as the section ...
0
votes
0answers
13 views

Webform numeric input type (for mobile devices)

Drupal 7, module "Webform". Is there a way to make webform's field with input type "numeric" to force touch screen devices to open numeric keyboard when the field is active?
0
votes
0answers
29 views

Webform REST skip validation for draft

I am posting a Webform via the REST API but I keep getting a response saying the fields are required. I have the form settings set to use drafts and can skip validation in Drupal. What do I need to ...
0
votes
0answers
21 views

Control page progress in the webform wizard

I have an assistant in the webform and I need that when I ask the database if it doesn't return anything I don't go to the next page, go to the first page named 'datos_de_solicitud' I use this if ($...
0
votes
1answer
25 views

Trigger custom code on existing Webform Submissions

I have created a custom Webform handler which submits the Webform data to an external webservice via SOAP. All is working but now I need to submit (to the same external web service) all the older ...
0
votes
1answer
43 views

How to show the status of a referenced webform in view of nodes?

My use case is a list of events and I want to show a label on the views item, if the event is already booked out. Therefore I would render the status of the referenced event registration webform. ...
0
votes
1answer
30 views

MachineName field element: How do I use the source and exists properties?

In my custom form, I am trying to create webform entities. Since webforms need unique machine names, I'm using the MachineName (machine_name) form element. The D8 MachineName element documentation ...
0
votes
1answer
27 views

How to customise list (text) field?

On my user registration page, I would like to add a field where users can type in and select specific key words. It is possible to make such a field using webforms. It would look as below: However, ...
0
votes
0answers
108 views

How do I avoid a closed form is deleted?

I use Drupal 8.8. I have a content type that includes a registration webform for events (field reference to entity). I have to give access to users who have created their own webform submissions; ...
0
votes
0answers
29 views

Webform checkboxes validation

Using Drupal 8, we've built a webform using the Webform module. This form uses the checkboxes element (6 in total) of which we've set to required which to my understanding means at least one checkbox ...
0
votes
1answer
22 views

Webform Module Email - Module Specific Configuration

We've built a custom web form module to handle the capturing of contact information on our website. We recently came across the Webform module and are thrilled that it has so many different ...
0
votes
3answers
41 views

Webform hook field text element

I Use Drupal 8.8 with Webform 8.x, in a simple webform with a select list element and a text field element, I need to update a text field element with values resulting from database queries when the ...

1 2 3 4 5 44