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

Questions tagged [webforms]

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

-1
votes
1answer
7 views

can i submit webform 8.5 images and files?

I want to submit files with forms and store a link to it in submission data. specifically i want to add an image to a submission and control its rendering in views. Can I do this with drupal 8? ...
0
votes
0answers
5 views

How do I show webform file in email as text only, not a link to the file

I want to store uploaded files in private file system which users cannot access. How to I show the uploaded file name as text only in a confirmation email instead of a link to the file which they ...
2
votes
2answers
41 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
12 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
4 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
17 views

How do I create a new custom component form field?

As shown in the image, Mapping Name is a new web form component form field. I want to create it via custom module. Thanks!
0
votes
0answers
12 views

Ajax error on form submit

When I submit the form on the website(example: http://www.megatechnika.ru/node/109/ ) the form isn't sent to the server. And there is an alert showing with /system/ajax/ 500 error and a following text:...
0
votes
1answer
52 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 ...
0
votes
1answer
24 views

Custom validation

I have a webform with 195 different select options, each with their own form key. I want to make the form so someone can only select 10 items, but the max number validation isn't working so I'm ...
0
votes
1answer
15 views

How to get Webform Radio Option Value as a token value for email template?

I am trying to use my webform's radio field to choose between two departments, let's call them ABCDE and XYZ. On the webform display that the user sees, I want them to show up as ABCDE and XYZ. When ...
-1
votes
1answer
25 views

Display an uploaded image in a webform, rather than the filename

Background: I'm using the profile module to hold user data but that makes an unpleasant UX for updating user info. So I'm using a single-page webform to offer the editable user data. The user data is ...
0
votes
0answers
9 views

how to do webform translations? Or how to apply webform localization to a page?

recently I tried Webform localization using string translations, but i could't see translations on page the form was as it been. So the question is how could i apply my translations and see changes? ...
0
votes
0answers
11 views

REST: 403 forbidden for file entities

Ok, so this is a weird one... I have a HEADless Drupal that I'm using to serve webform submissions. The webform module stores all files as private files. The issues I'm having is if I view the ...
0
votes
1answer
25 views

How to setup different confirmation email per webform instance

Background: I have a ContactUs webform made by Drupal 8 webforms contrib module and used that ContactUs Form on 3 different pages. Is it possible to setup 3 different confirmation emails per ...
0
votes
1answer
33 views

Webform to content type [closed]

In the Webform module version 8.x-5.0-rc27 there isn't the tab to add a webform to a certain content type. Is this intentional? If not, is there a workaround for this issue?
0
votes
2answers
54 views

How to load and render a webform with Ajax

I'm new on Drupal 8, and I want to make a custom module to load any webform of (webform module) on other pages of the website. The idea is to load the webform when the page load. All webform has ...
0
votes
0answers
30 views

Multiple file upload issue in multipage webform

I have created multipage webform in my development drupal8 site and there is multiple file upload field in second page of multipage form.Totally form contains 3 pages.When i upload multiple files in ...
0
votes
1answer
10 views

Webform Build Tab not displaying correctly

We just installed the Webform module, but as I'm going in to create and edit a new form, the "Build" tab is only allowing me to enter Elements with YAML code (pic one below). In the module description,...
0
votes
0answers
20 views

Two checkboxes on a GDPR form [on hold]

Is there a way to add two checkboxes on a form. I installed the GDPR Form Compliance module on Drupal, but this module only allows one single checkbox, and I would need two. Is there a way to add an ...
-1
votes
1answer
22 views

How to Put a Comma in the Number Element of Webform? [closed]

how can I put a comma in a number element in drupal 8 webform to show in a view? For example, amounts like 1,000.00. Thanks.
0
votes
1answer
15 views

Attach a simple custom handler to a Webform

I'm trying to create a custom webform handler. I'd like to be able to attach my handler to any webform and have it display the message 'xyz' when the (multi step wizard) form is finally submitted. I ...
0
votes
1answer
24 views

Error is raised when I try to redirect webform submission to external webpage with query string

Dear Drupal community, I created a webform using the webforms module in Drupal 8 in order to add information to a webpage. Since I don't want to update the webpage manually I'd like to automatize ...
0
votes
1answer
19 views

Webform CKEditor add color

I would like to add the possibility to change color in CKEditor, mainly for Webforms. The instructions at https://www.drupal.org/project/colorbutton suggest to download manually the CKEditor ...
0
votes
1answer
20 views

Conditional email is not sent

I have configured an email handler with the condition that an email message must be sent when a submission is updated by filling an image file field (the image file field has to be "filled"), but ...
0
votes
1answer
13 views

Set default country for the Address type element (Webform)

I'm using the webform module (8.x-5.0-rc12) and I've used the Address type element to store my addresses. I'd like to set the Country field to default to United Kingdom when the form is displayed. ...
1
vote
1answer
158 views

“Your requirements could not be resolved to an installable set of packages”

Last time I used composer on my project was to update drupal core from 8.6.2 to 8.6.3 using composer update drupal/core webflo/drupal-core-require-dev --with-dependencies and to update the webform ...
-2
votes
0answers
24 views

Drupal Webforms and checkbox output values

I have in the process of setting up a new webform using the fantastic webform module. I would like to use checkboxes to collect marketing consent. e.g. opt out of email newsletter In my database I ...
2
votes
0answers
30 views

How to add a modifier to a form id? [duplicate]

If I form alter a form, I see the form_id as MY_FORM_ID; I see this in the $form_id parameter to hook_form_alter as well as in the $form_state->build_info['form_id']. In the rendered output of the ...
0
votes
1answer
27 views

Add elements to webform dynamically via hook_form_alter

I'm trying to dynamically add multiple toggle fields to a form (in my case webform) via a form-alter-hook. function module_form_alter(&$form, FormStateInterface $form_state, $form_id) { .... ...
0
votes
1answer
22 views

Add Mailchimp interests fields into webform_mailchimp signup field

Currently I am using: mailchimp 7.x-4.9 webform_mailchimp 7.x-4.x-dev webform 7.x-4.18 From this issue I applied patch #2 to webform_mailchimp 7.x-4.x-dev module, and I can see the file ...
0
votes
0answers
15 views

Merge Webform select option field into Mailchimp merge field

I am using webform_mailchimp 7.x-4.x-dev and MailChimp Version: 7.x-4.9. In my Drupal webform, I have a country select list field, where the user can select their country. How do I merge this field ...
0
votes
0answers
14 views

Change the way the date selector is shown

In Drupal 7, when we add date component to a webform, we get 3 different drop-downs for date, month, and year. I want to replace it with a normal date field like the one in contents. How can I ...
0
votes
1answer
30 views

Move a Webform between sites

I built a few webforms on a Drupal 8 install. I see how to export the webform in YAML via the export tab on the webform. How do I import that YAML into another site to re-create that webform? Thanks ...
0
votes
0answers
8 views

Contact form - send email copy not displayed

I created some customized forms. I used the checkbox "Send email copy to yourself". As Admin I see the checkbox in all forms. If I'm logged out I don't see it. I looked everywhere and tried a lot, ...
-1
votes
1answer
19 views

Webform entity select submission displaying different result than element

I have a webform in Drupal 8 with an entity select element. The element is populated from an entity reference view. I have a book content type with information about the book such as title and author. ...
0
votes
0answers
29 views

Translate Field Label don't works

I'm linking my webform with the webform field. And changed the label in the "manage display". Because I have a multi-language site I translated the label by the "interface translation" (/admin/config/...
0
votes
0answers
30 views

Webform file/image upload fails

I manually created the docroot/sites/default/files/private folder, cd docroot/sites/default/files/ | chmod 755 -R private and chown -R www-data:www-data private Flushed the cache, and still ...
0
votes
0answers
13 views

Classify nodes according to the number of times they have been referenced and their taxonomy term

Let me first explain the context (because the problem is quite complex): I have nodes, having a reference entity type field to link them to taxonomy terms. I have a webform in which users can ...
0
votes
0answers
21 views

Webform module: override confirmation message based on the response from a web service call

I've created a custom form handler (based on the webform_example_handler module) in order to forward webform data to a web service. How can I change the confirmation message based on the result I get ...
1
vote
1answer
26 views

Attach file to email

I have a site with a webform, which when submitted sends an email. The form has a file upload which should then attach the file as an attachment to the email. I'm not getting any attachment. I've ...
6
votes
1answer
470 views

How to prevent an Ajax form from submitting

The below code blocks any non-ajax form from submitting. $(this.form) .on('submit', function(event) { if (/* Some condition */) { event.preventDefault(); } }); In Drupal 8, how can ...
3
votes
2answers
167 views

Custom Twig template for confirmation webform page being cached too hard

I've created a custom module which does some additional form handling and styling required for my project - this is all working fine. Due to the size of the form - 50 odd fields - I'm setting up a ...
0
votes
0answers
13 views

Recapcha on Webform granting admin access

We are having sporadic issues where an anonymous user submits a webform with recaptcha and being granted back door access to the admin user account of the site. Closest we could get to replicating is ...
0
votes
0answers
44 views

WebForm Select Element using Entity Reference View cannot use token in arguments

I'm trying to create a D8 webform that will take a date entered on Page 1 of the multipage form, and utilize that date as the contextual argument for an Entity Reference View. My date field is named ...
0
votes
0answers
26 views

Create a Webform Element as Checkbox

I am trying to create a checkbox element for the webform in D8. There is an example module, for creating and element, "webform_example_element" that actuly creates a text field element for the webform....
0
votes
1answer
23 views

Elements not showing in $form object

I have a webform with some fieldsets. Within each fieldset is a set of input elements that are the same for each fieldset, and each set of elements has the same machine name. One of the elements is a ...
1
vote
0answers
25 views

Webform select limit

Is there a method to limit the number of chosen select options? In D7 there was Webform Select Limit but in D8 there is no alternative. What I want to do is this: Create a webform for event ...
0
votes
0answers
31 views

How to disable message in webform “Changes you made may not be saved.”?

I have a message from the webform module "Changes you made may not be saved." which I do not want to see anymore. I get it on any form. I try to disable this form. Therefore I added a js to the theme....
0
votes
1answer
18 views

Exclude certain webform field to be saved in Database

Is there a way we can exclude certain webform field to be saved in Database. Don't want to exclude from email data.
0
votes
0answers
15 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 ...