Skip to main content

Questions tagged [webforms]

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

985 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
1 answer
850 views

Why does the Webform disappear after changing Submit button text in Form settings?

I have created a Webform page called "Quick Quote". It is working fine in the website. But when I change the "Submit button text" to a new value in Advance Settings >> Form Setting ...
Ashok KS's user avatar
  • 391
4 votes
0 answers
1k views

How do I conditionally change the value of a field depending on the value chosen in another?

This was so easy in webform 4.x. However, I cannot seem to find it in webform 5.x. I am creating a form using webform 5.1, and I need to set the value of the fees for a particular grade for an ...
Jasper Levi's user avatar
4 votes
0 answers
1k views

Push data to dataLayer on Webform Ajax submit

I'm using the Webform Ajax module to ajaxify my Webform and I need to push some data to the dataLayer to use with Google Tag Manager after a successful submit. Like: dataLayer.push({ 'event': '...
Jorah's user avatar
  • 41
4 votes
2 answers
2k views

Load an AJAX submission enabled webform using another AJAX call

I am using Javascript/AJAX to call a path defined in a custom module which loads existing node content for display. i.e. you are at: /custom/path and it makes an AJAX request to /custom/content ...
Mike's user avatar
  • 41
3 votes
1 answer
586 views

Conditional subelement within custom composite webform element

I have a webform that has a custom composite element; let's name it composite_name. Within that custom composite, I have element_a, element_b, and element_c. Is it possible to make element_c visible ...
Brian Smith's user avatar
3 votes
1 answer
1k views

How to to render a webform (or any configurable form) in a node edit form?

I have a weird use case, where I was looking to perform the following: In a node edit form, allow a user to entity reference a collection of webforms When a user selects an appropriate webform from ...
comm33's user avatar
  • 31
3 votes
1 answer
793 views

Webform description allowing HTML

I'd like to allow HTML in my webform field descriptions. I don't need an editor of some sorts; just the basics like and tags and stuff. How can I edit my webform to allow these tags in the ...
CaptainCarl's user avatar
3 votes
1 answer
67 views

Drupal View Show Webforms NOT Submitted By Logged In User

I'm hoping someone can help me out with this because I have been stuck on this for days... I have a bunch of webforms that each user needs to submit. I figured out how to show a view of the webforms ...
Chad's user avatar
  • 31
3 votes
1 answer
136 views

Webform2pdf and CiviCRM fields: pdf empty

I have a Drupal website with CiviCRM. I created a webform and installed webform2pdf to create a pdf and CiviCRM integration module to add CiviCRM fields to my webform. After submission the webform ...
hashkey's user avatar
  • 31
3 votes
0 answers
1k views

How to programmatically toggle webform required field

Using webform4, how to programmatically toggle the required option based on another condition? I have done jQuery('#edit-submitted-fld4-rgistered-with').removeClass('required'); but it seems the ...
Ura's user avatar
  • 457
3 votes
0 answers
117 views

Drupal 7 Webforms 4, prevent submission if value of field is less than or equal to previous submission

I know that you can prevent submission if a specific value has previously submitted. However can you prevent a submission if the submission is less than or equal to a previously submitted value. ...
Figtree Develop's user avatar
3 votes
1 answer
372 views

Webform capability issue with Chosen

The Chosen module no longer get applied to Webform select fields with the most recent updates to a Drupal Commerce 2.0 site that I am working on. I am using Chosen version 7.x-2.0-beta4+1-dev (part of ...
e.shell's user avatar
  • 70
3 votes
0 answers
639 views

Webform: change the way each component is displayed?

What I'm trying to achieve: I want to show my webform so each input would be displayed on separate page (kind of wizard or form with steps). I know that usually this is done by adding page breaks at ...
Daniel's user avatar
  • 141
3 votes
1 answer
2k views

Adding Gmap to webforms

I allready download gmap, location and some other modules that in this catagory and still I dont succeed to add a field in gmap type to my webform page so users could put it their location (not in the ...
Dor Zohar's user avatar
  • 131
3 votes
1 answer
676 views

Ajax webform: refresh page on a successful submission

I am using the ajax webform, because I don't want the page to be reloaded when the user doesn't enter everything correctly because my form slides in and reloading just causes it to disappear and you ...
user avatar
3 votes
1 answer
182 views

Is there a way to add infinite number of Add More on webforms in Drupal 6

Simple question for all of you here dealing with Drupal 6.x... With Drupal's Add More module, is there a way to configure my webform so that there is no limit on how many of a specific fields I can ...
Bob Liu's user avatar
  • 158
3 votes
1 answer
259 views

Disable Webform Componotent (field) after certain number of submissions

I'm working on a registration form that collects student information and the class session they're signing up to. Class sessions are of select type and has four options (sessions). Each sessions has a ...
DRPL's user avatar
  • 39
3 votes
1 answer
297 views

Can't remove document file from Media

I've created a WebForm that allows a user to upload a document file. The file stores to Media which I'm using for images. I can delete the image files but I'll be dog-gone if I can figure out how to ...
Diane's user avatar
  • 31
2 votes
0 answers
34 views

Display images in a Webform options (that displays a likert scale)

I'm looking for a way to display images in Webform options that I have created. The Webform options display a Likert scale with 4 options. The machine name of the Webform option is '...
Maki Delidaki's user avatar
2 votes
1 answer
265 views

Show webform textfield conditionally based on "radio other"

I have a webform "radio other", with options like "1, 2, 3, more". For "more", "radio other" is configured to add a textfield for custom values. Now the problem ...
Letharion's user avatar
  • 27.5k
2 votes
0 answers
178 views

Edit webform submission secure token url

I would like to change url for secure token. Now it /webform/MYFORM/submissions/sid?token But i would like to change it to /submissions/sid?token I use these instructions https://www.drupal.org/...
kazah's user avatar
  • 29
2 votes
0 answers
286 views

How to create custom composite entity select for Content?

Basically, I just need to show a custom composite containing a dropdown to the user which shows all the names of all published nodes of type 'product' so that they can choose as many as they want and ...
Riley Lutz's user avatar
2 votes
0 answers
168 views

Problem with same webform added multiple time in a page

Problem I have an Article node with layout builder enabled for content author. I have webform Subscribe newsletter with ajax enabled. I add webform Subscribe newsletter to the node twice. So there are ...
Permana's user avatar
  • 254
2 votes
0 answers
101 views

How to control display of state_province field from the address module

Ok - the title is not terribly clear. I'm building a form that uses Advanced Address. That element comes from the Address module. I want to control the display, or perhaps a better way of saying it; I ...
sea26.2's user avatar
  • 1,014
2 votes
0 answers
56 views

custom handler for webform?

I'm not sure how to go about this... Given a simple registration form that has three fields email country optIn (conditional) When this form is presented, I'd like the Opt-in field to be hidden ...
sea26.2's user avatar
  • 1,014
2 votes
0 answers
37 views

How do I turn off the calendar popup widget on the date field?

noob here, I have a form that requests a birthdate. I have set that field type to a date field. When on a desktop, the user can either enter the date directly into the field--this is great--or use the ...
Marc Prince's user avatar
2 votes
0 answers
573 views

How can I prevent a webform submission from being saved?

I'm writing a custom WebformHandler and am wondering how I can prevent a submission from being saved? I've tried using the RESULTS_IGNORED and SUBMISSION_OPTIONAL in the @WebformHandler annotation, ...
Purdy's user avatar
  • 127
2 votes
0 answers
132 views

How do I test for an empty Address webform element?

Using Drupal 9.1.3 : Webform 6.0.0 How to check for the null value of a Webform Address Composite element {% if webform_token('[webform_submission:values:**ELEMENT_NAME**]', webform_submission, [], ...
David Barrett's user avatar
2 votes
0 answers
68 views

Webform clone translation and caching issue

when i clone a webform programmatically i loose the translation. This is my code. //Load webform to duplicate $webform = \Drupal::entityTypeManager()->getStorage('webform')->load($default_template);...
nikitas michalakis's user avatar
2 votes
1 answer
263 views

How can I save and exit from the middle of editing an already completed multipage webform submission?

I've got a multipage webform I'm letting users edit after they submit. There are many pages, and I don't want to force the user to go all the way to the last page to save. Is there a way to submit/...
awolfey's user avatar
  • 21
2 votes
0 answers
655 views

How to render webform element in twig file template for HTML display

I want to override the HTML display for webform submissions. So, I have copy this file "webform-submission.html.twig" in my template folder and rename it in: "webform-submission--testform--html.html....
Prof's user avatar
  • 69
2 votes
0 answers
178 views

Webform module loosing language for referenced options

First I have content type "Quiz option" which is translatable. Then I have a view that returns Entity references of that type. For language option I selected "Content language of view row" and also ...
MilanG's user avatar
  • 539
2 votes
0 answers
527 views

How to override/theme suggest webform composite element table?

I have created an implementation of hook_theme_suggestions_table_alter() in my THEMENAME.theme file: /** * Implementation of hook_theme_suggestions_table_alter(). */ function ...
DIP's user avatar
  • 21
2 votes
0 answers
26 views

Display a user's responses to a webform in the webform but uneditable

Use-case: The user completes the webform but is still able to view it, in the webform structure, but uneditable. They finished it, they can't change it. I know we can add a "lock" to a completed ...
Adaddinsane's user avatar
2 votes
0 answers
134 views

Temporary confirmation URL

Using Drupal 8.5 and Webform 8.x-5.0-rc10. I want to programmatically change the confirmation URL on a temporary basis and have it not affect the original confirmation URL if the form is being ...
bobthebuilder's user avatar
2 votes
0 answers
740 views

How do I use an Entity Reference List view display with a webform entity select/radio field?

I'm using Drupal 8, and have a webform for users to designate a proxy at meetings. The webform has a field for meeting date, and I want to restrict that to scheduled meeting dates. I already have a ...
user85177's user avatar
2 votes
1 answer
5k views

Inline Validation Messages with Webform

Sorry if this has been asked before (although I've been looking and haven't found quite what I'm looking for). It's not currently possible to present the server-side validated messages (specifically ...
foppyish's user avatar
2 votes
0 answers
6k views

Why is Drupal not sending email from Webform?

I have entered my email in webform > Emails tab. After I submit the form, I do not get any email. I am just stuck. I submitted the form many times and I got no emails. Any advise? Webform: 7.x-4.16 ...
autop's user avatar
  • 565
2 votes
1 answer
867 views

Routing with optional parameters for webform is just giving page not found

I created my webform to accept parameters via a standard $_GET and this works fine but is quite unsecure I am told and should rather use clean URL's via Drupal 8 built in Routing. As such I set up a ...
John Cogan's user avatar
2 votes
1 answer
547 views

Why are my webform conditionals not always working?

We have 2 partially same webforms with conditional fields, opening a number of components depending on the selection with radio buttons. When logged on as administrator, both forms work fine. when ...
walter__'s user avatar
2 votes
0 answers
200 views

Webform and fabric.js integration

I'm trying to design a form that allows a user to design a custom tshirt. I was thinking of using the fabric.js library to let the user design a custom image and submit it with other custom ...
Paul Morris's user avatar
2 votes
1 answer
105 views

How to print all Webform messages outside the form?

Does anybody knows how to print all messages (confirmations or error messages) outside the form (created using the Webform module, for example right after the body tag? I've changed the markup of my ...
user504944's user avatar
2 votes
0 answers
215 views

How do I output only CERTAIN submission values in webform HTML mail?

So here is my problem: In HTML email template, I don't want the user who chose "hotel" to receive the same output values than a user who chose a flight. I created a booking webform with 30 ...
Vasmir's user avatar
  • 223
2 votes
1 answer
194 views

How to email the results of a filtered view to a user?

Required functionality (Drupal 7): User filters a view to desired results User enters email address in a webform block User is emailed the filtered list of results I'm using Views (7.x-3.14), ...
wotney's user avatar
  • 202
2 votes
1 answer
264 views

How to Add Image Field in CIVICRM

I am trying to add an Image as Custom field in Civicrm Contact, but the Image Field type is not in the Custom Field section. It has only Field type as File. How to apply Drupal Image styles for ...
Zlahc's user avatar
  • 21
2 votes
1 answer
2k views

Enable CKeditor on Webform's textarea

I'm trying to create a contact form supporting HTML formatting with Webform and CKEditor. So I created a new webform with a single field of type Textarea and now I have a simple webform with the basic ...
Alexander Ishmuradov's user avatar
2 votes
0 answers
93 views

Check if node is flagged after webform submit. Rules

I have a webform block on a node. I'm trying to send emails to the node (field email) after webform is submitted but only if the current node has been flagged (not the webform). I would presume that ...
Rick Harington's user avatar
2 votes
2 answers
49 views

Control content type availability based on day and time

I have a website that delivers products that are ordered during the day. I would like the order form to only be available during business hours. Outside of those hours, the form shouldn't be ...
John S.'s user avatar
  • 21
2 votes
1 answer
370 views

How do I show webform component labels in a chart using Views chart format?

Drupal 7.50, Webform 4.12, Webform Chart 2.0, Views 3.13, Charts 2.0, with Google Charts as the charting engine, so not Highcharts. I have a webform that collects simple drop down list values for ...
Darren's user avatar
  • 293
2 votes
0 answers
123 views

Webform template for all webforms in content type

I have content type with attached webforms. There is currently 8 nodes with webforms. Is there a way to create one webform template for all of this webforms? Because right now I'm using multiple ...
user504944's user avatar

1
2 3 4 5
20