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
1
vote
1answer
36 views

Can I hide a webform?

I would like to pilot a webform for a period of time and have the option to hide it vs. delete if needed. How do you hide a webform from your site?
0
votes
0answers
20 views

Configure emails for webform

I am looking at two sites both have webform 7.x-4.18 plus mimemail and and mailsystem. when configuring emails for webforms, one site shows 3 options in the E_MAIL HEADER DETAILS: subject, from ...
0
votes
0answers
90 views

Pass node tokens to a webform on a paragraph?

Drupal 8.6.5 Webform 8.x-5.2-beta1+16-dev I have a webform as a field on a Paragraph. The paragraph is referenced from a node. I need to be able to pass field values from both the node and the ...
0
votes
0answers
25 views

Webform Validation doesn't recognise conditionals

I have a form that requires "conditional validation". I'm using Drupal Webforms, it's inbuilt Conditionals and Webform Validation modules. Here's the scenario: Question 1 = Yes / No If Question 1 = ...
0
votes
0answers
46 views

Download private files in s3bucket from drupal8 webforms

I am using webforms module for career form in my drupal8 website and the resume files are uploaded to s3 bucket as private. Is there any way to download the resume from backend(admin)? It was able ...
0
votes
1answer
36 views

Datelist element in webform not working

I was just going through webform configurations and I changed the date list element format from default to raw. After doing this Im not able to add any element of type dateform to my webform and also ...
0
votes
1answer
223 views

Return data from WebformHandler to Controller

I created WebformHandler where I need to get data entered in the form on submit. It's something like this: <?php namespace Drupal\xxx\Plugin\WebformHandler; use Drupal\Core\Form\...
0
votes
2answers
297 views

How do I programmatically get the link for a webform submission?

I have managed to create a table of webform submissions of a particular type, thanks to the answer from a question posted here. What I would like to do now is add a link for each webform submission, ...
0
votes
0answers
30 views

Webform and Shopify webhook have different IP addresses

I have a website set up with the Shopify Modules where customers can place Shopify orders. When a customer adds an item to their cart, they fill out a webform on the website and then add the item to ...
0
votes
1answer
104 views

Add class to Previous / Next Button

In Webform 7 I was able to add classes to the Previous / Next Page button but can't seem to be able to do this with Webform 8. Is there a way to do this?
0
votes
1answer
136 views

Webform Address Element and Canada provinces

In the webform (drupal 8) module I am using the address element and notice that the state/province field does not contain any Canadian provinces - only US States and Territories. Where can I add the ...
0
votes
1answer
61 views

How do I use the value of a webform_field as the default-value for a later webform_field?

Is there a way with Drupal 8 Webform UI to set the default value of a text field as the value of an earlier text field in the same form, and update via Ajax? example: user_name: '#type': ...
0
votes
0answers
30 views

Multi Event Webform Registration

I am trying to create a 3-day event registration using webform (Drupal 7) in which participants have the option to attend 1, 2, or all 3 days. If a participant selects only one, they are still getting ...
0
votes
0answers
51 views

Sending Webform submissions

We installed Webforms and Salesforce suites and we'd like to create new leads in Salesforce based on the webform submissions. I created a webform with 3 fields. email: '#type': email '#title': ...
0
votes
0answers
27 views

Webform File name not showing in submissions

I am using webform 5.1 in Drupal 8, I enabled private file settings and added a file field of type document_file. When I upload the file it gets saved in the folder, its name is also visible in ...
-1
votes
2answers
150 views

webform submission presave in a custom module [closed]

I'm quite noob at drupal, i have a custom module with the function below: function at_custom_webform_submission_presave($node, &$submission) { // my code here } i don't know why, but it's seems ...
0
votes
1answer
94 views

How can I use postsave method extending WebformHandlerBase for submitting to account fields [closed]

I created a webform handler class extending from WebFormHandlerBase: The method, postsave has the following code: public function postSave(WebformSubmissionInterface $webform_submission, $update = ...
0
votes
1answer
75 views

Update webform without composer

I need to update webform from 8.x-5.0-beta18 to 8.x-5.1 but unfortunately, I cannot use Composer because it is not possible to install it on my server due to server restrictions. This also apply to: ...
0
votes
1answer
80 views

Webform limit to multiple choice question

Anyone know of a way to take a multiple choice (checkbox) question on a Webform and only allow the person to select two or three options and all other options become disabled? Using WebForm module? ...
0
votes
1answer
61 views

Webform submission redirect to view with node ID

I have a view with table of data about a member of a sport club. I've placed a link to webform in the header that adds more rows into that view, which works fine but I'd like to redirect the form to ...
0
votes
0answers
63 views

Linking webform submission with Commerce 2 order

I'm trying to implement a way for people to register and pay for an event on a D8 site. I am using Commerce 2 and the Commerce Webform Order module and have a webform set up that collects information ...
0
votes
1answer
37 views

redirecting midway out of a webform wizard

I am building a webform that has multiple pages. The idea is that the user leaves the wizard after each page that he submits. When he later returns, he automatically starts the form on the unanswered ...
0
votes
0answers
75 views

Webform: File upload - rename files feature

So in webforms module, there's a checkbox to Rename files. The File Name pattern text field. What are some examples on what to use? I noticed that I put in a text string "fileupload" and it ...
0
votes
0answers
26 views

Ensuring Users Get the Most Up-to-Date PDF

I have taken over a Drupal 7 site that contains a lot of pdf forms. These forms are frequently updated. Many of these forms were uploaded to sites/default/files/userfiles and manually linked across ...
0
votes
0answers
44 views

Where is webforms template info stored in the database

I'm using webforms in Drupal 8. I have migrated an old database over but need to overwrite the correct webforms table to restore a webform template I created on a previous site. Can you tell me ...
-2
votes
1answer
164 views

webform_submission_ID post blocked by CAPTCHA module

After solving reCAPTCHA and submitting the form I am getting error: The answer you entered for the CAPTCHA was not correct. Recent log message says: webform_submission_ID post blocked by CAPTCHA ...
0
votes
2answers
35 views

Show View When Empty and Hide View When Not Empty!

I have a webform as a block which sets a value connected to the logged in user. I want to display the webform if it hasn't been filled in yet by authenticated users, and hide it when it has (based on ...
0
votes
1answer
168 views

How to upcast webform submission in custom routes resp. controller?

Using this route: confirm: path: '/node/{node}/submission/{webform_submission}/confirm' defaults: _controller: '\Drupal\mymodule\Controller\MymoduleController::confirm' _title: 'Confirm ...
0
votes
1answer
20 views

Webforms: pages 1,2 of 4 not being displayed

I'm developing my first Drupal 8 Webforms application. It had three pages to start with and I had managed to get it to do what I wanted it to. I have also developed a WebformHandler to go with it. I ...
1
vote
0answers
51 views

Using workflow with webform for moderation

I'm working with a Drupal7 site, it currently has both webforms and workflow modules. I need to move a webform from request to approve stages. I defined the stages, & Created a trigger for the ...
0
votes
0answers
151 views

Default Style for token - webform_submission:values

I'm wondering if there is a way to theme the default style for the webform token [webform_submission:values]. The emails being sent with no space between the label and the value. So they look like ...
0
votes
1answer
37 views

Allow authenticated users to update submissions

Drupal 8.6.5 and Webform 5 here I have a webform in which I have enabled Signature Pad (I mean https://github.com/szimek/signature_pad). I would like to implement a workflow such that: An ...
0
votes
1answer
48 views

Access webform by checking predefined codes

If I set up a webform with one component "authrization code", which is predefined by my side. People can access the form only when they get the authorized unique code from me. Is there any way to ...
0
votes
1answer
27 views

The only email header field that can be replaced is the Reply-to field?

Under the heading E-mail header details in the e-mail settings for my webform I have set the option E-mail from address to the component E-mail, from the current webform. When the webform is ...
0
votes
1answer
154 views

Webform with element that has logged in user's username

In my D8 site i have several webforms created. I would like to have a Webform element that will pull/prepopulate logged in user's username. Is there a way to achieve that from GUI? The reason i want ...
1
vote
1answer
30 views

Display users webform submission as readonly?

Is there any built-in way to display the questions on a webform and the user's responses as read-only? The site I'm building allows a user to answer survey questions up to a given cut-off time. Once ...
1
vote
1answer
368 views

Programmatically change webform confirmation page

I've looked at the other similar questions but they don't answer this precise issue. In my use case, a webform is displayed on an arbitrary entity page (such as "activity/xx"). (This is not a 'node' ...
0
votes
1answer
376 views

How to silently prevent Webform spam (specific names, email addresses)?

I am using Webform on Drupal 8; I have a few spambots that fill out the exact same form in the same way every day. I want to do some kind of validation that automatically blocks these postings. For ...
0
votes
1answer
125 views

Post/redirect form to url of node selected

This is a continuation of this: https://www.drupal.org/project/webform/issues/3023984 I was able to redirect to a node/term url using the token based on the answer provided, great! However this is ...
0
votes
3answers
742 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 ...
1
vote
1answer
176 views

Editing display of submission results

I'm working on a Drupal 8 site, and I'd like to adjust how the results (/admin/structure/webform/manage/form-name/submission/ID/edit) display – the client doesn't want to see all of the fields and ...
0
votes
2answers
202 views

Want to display the validation error message above the webform

I have a webform created in Drupal 8 using the webform module I have to submit the data to 2 different 3rd party API. The scenario is I have to submit the data to the 1st API if there is no error ...
0
votes
0answers
19 views

Webform field description to be inline, not popup

The description text on a webform text field does not display inline, but pops up in a box when you click into the field. How do I change this so it is inline like the other fields? Using Tweme ...
0
votes
0answers
10 views

Ajax Form “back to form” link not reloading form via ajax

This just started happening today. We have a site form that built with 'Ajax' turned on. The form submits, and ajax displays the 'confirmation' message with the 'back to form' link. When clicking '...
-1
votes
1answer
25 views

How to change the “firstDay” option of the datepicker JQuery UI element in the UI of webforms?

Where can I change the firstDay option of the datepicker in the UI of webforms? Can it only be done by writing some code?
0
votes
1answer
58 views

Webform Validation Allow Lowercase Only

I have an email field in a webform that will trigger a rule that checks against that field against a user's email. The issue is, rules is case sensitive so if the webform field had capitals, and the ...
3
votes
2answers
109 views

Rendered Webform has no Javascript attached

I've created a simple filter that allows webforms to be rendered anywhere in a node with a tag like this: [webform:machine_name] The code to render the form is as follows: $webform = \Drupal::...
0
votes
1answer
36 views

Finding entity/webform fields in the database

A bunch of user accounts were deleted and recreated with new UIDs, and so any webform submissions or entities that have fields pointing to the old UID are now broken/wrong. I already updated some UID ...
0
votes
0answers
12 views

Limit theme_webform_element() to One Form for Placing Description Above Field?

I have a very long webform, more than 200 fields, where the description needs to go above the input/textarea and below the label, instead of below the input/textarea. I am using webform 7.4.x and I ...
0
votes
1answer
250 views

How to pass values or data from a page to a webform using webform link field?

If we have a link to a webform in a content type and we need to pass data or values to that webform from the fields available from the content type. How do we achieve this. I'm using webform 8.x-5 I ...