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
0
votes
0answers
6 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 ...
2
votes
2answers
458 views

How to add field to ALL webforms?

How do I add a field to all webforms? I have a website where I'm using webform for surveys and I want that on each survey there will be a field that is the same in all of the nodes/webforms. Thank you....
0
votes
0answers
14 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 ...
0
votes
1answer
584 views

Computed value on multipage Webform

I have multipage webform. I want to compute the value of the component (Hidden -type) which is on the second page based on the data submitted on the first page. I'm using hook_form_alter and added my ...
0
votes
0answers
335 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
1answer
24 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
1answer
16 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 ...
1
vote
1answer
660 views

Webform Localization does not work

I have downloaded the Webform Localization module from Drupal.org, but it is not working to translate form, and I want to keep a single webform across all nodes. How can I do that?
2
votes
3answers
327 views

webform libraries dir location

The webform status report states several libraries are needed. After downloading the zip file.. and extracting it. Where does '/libraries/' directory belong? ie: /modules/webform/libraries Or ???
0
votes
0answers
17 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 ...
1
vote
1answer
609 views

How do I programmatically export all webform submissions into a single csv? (multiple webforms)

I have hundreds of webforms created from a single webform template. How do I programmatically export all webform submissions into a single csv? Note that this is not possible via views out of the box. ...
0
votes
0answers
21 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
0answers
17 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
690 views

How to Display Image after submitting webform in the confirmation message page

I have added field as file in webform so that we can add image in this file field. Now i want to display next page after submitting image file by using following code [submission:values:image_file] ...
0
votes
1answer
369 views

Pop-up calendar option does not display when I add Date field in webform

I am using Date and Calendar module. When I add a component to webform, I selected the Date field > click Add. But I do not see the Pop-up calendar option. However, when I add a content type (...
0
votes
2answers
980 views

Webform textarea character counter

I want to add a character counter on a textarea field on Webform. I tried the Maxlength module but it doesn't work (I can't find any reference to it on editing the field) and I read it works only for ...
1
vote
1answer
831 views

how to validate minimum age in webform

I've got a question about webform and webform validation. I'm in D6.19 with webform 6.x-3.4 and webform validation 6.x-1.3 I'm adding a date field to capture age, and I need to validate that the age ...
1
vote
1answer
24 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 ...
2
votes
1answer
638 views

How to keep URL parameters on subsequent pages after a form is submitted?

I'm sending a referral form out to my email database and I've got it set up so that their email addresses get passed through and appended to the form URL like this: http://www.holbrooktravel.com/...
0
votes
1answer
11 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 ...
-3
votes
0answers
24 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
18 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
436 views

How to create a link from node view and pass information to a webform

In Drupal 8, I have a webform field attached to a node with the Link to form formatter enabled. Can I add the ID of that node in the Link custom attributes (YAML) textarea to display a block view of ...
0
votes
1answer
769 views

How can I disable the form confirmation message?

I'm referring to the green box that informs the user that they have successfully submitted their form. In particular, I'm wondering if I can remove it without writing any php. Is there anything in the ...
0
votes
1answer
652 views

Simple webform with payment module

what I need do is not an ecommerce site. On my drupal website I need a simple web form with a payment (by paypal) and a node reference field prepopulated (by the entity refence and entity reference ...
0
votes
1answer
735 views

Views webform filter based on the current node field value

I have a Webform where it's used to get product comments. This webform is exposed in a node page and has a field that is populated automatically with a value from the current node, lets say "...
0
votes
1answer
21 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....
1
vote
2answers
23 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 - 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 ...
0
votes
1answer
614 views

How do I control if an ajax webform has errors?

I have a webform that sends an email upon submission. Ajax is enabled so when I hit submit and there are errors on the form they will show instantly. However if there are no errors I would like to ...
0
votes
1answer
1k views

Webform custom composite

Could someone advise on how to adopt the working composite example that comes with Webform in Drupal 8? https://www.drupal.org/node/2824714 suggests it can be done. I've copied the example from ...
1
vote
2answers
2k views

How to show view for submitted result of a webform by a user

How i can show all submitted value of a webform by a user in a view in a tab of a user profile section. Iam using drupal 6.For example when user click on a tab say form on his profile the webform ...
0
votes
3answers
630 views

Drupal 8 and MailChimp

I'm syncing a Drupal 8 webform to populate a MailChimp lits via the MailChimp module. As well as capturing the first and last name I also want to capture the City and Province. However when I submit ...
1
vote
1answer
961 views

How to create an Enquiry form with ability to submit a collection of enquiries

I am building a new site which has a large selection of different products/services on offer, the information for each is shown in it's own node. If the user has interest in a number of these ...
0
votes
1answer
2k views

Pass URL alias info to default value of Webform field

I'm running the Storm (project management) module and for each task, the user needs to fill out a form regarding information about the task, including uploading images about certain information ...
0
votes
0answers
11 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?
6
votes
1answer
2k views

Add type='tel' attribute to webform field

I want to add the html5 tel attribute to a particular field in my webform form in order to prompt mobile devices to display the appropriate keyboard. I was trying this: function my_module_form_alter(...
1
vote
1answer
696 views

Emails are not triggering when MIME mail is selected

I want to send HTML emails on webfrom submission. Gone through many tutorials as well as Questions on stack but didn't found a proper solution. I am using three modules to send these HTML mails. ...
0
votes
1answer
18 views

Computed twig Automatically update the computed value using Ajax

Whe I use computed twig with "Automatically update the computed value using Ajax" checket, it create "update" button next to my computed twig field. How I make the field update really automaticlally ...
0
votes
0answers
23 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
1answer
38 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. ...
1
vote
2answers
2k views

Add CSS class to <form> element using webform and template file

I have an existing webform in Drupal 7 which I am trying to theme. So far I managed to add CSS classes, placeholders, prefix, suffix,.. to form elements (fields) but not to the actual <form>-tag?...
2
votes
1answer
2k views

How to use Webform values in Rules?

I am using the Webform Rules module and I created an event 'After submitting webform', and an action 'Fetch webform submissions'. When I add an action 'Show a message on the site', I get all the ...
0
votes
1answer
19 views

Error when adding BCC to email handler with webforms and smtp

I use SMTP to handle emailing and Webform to generate my forms on a drupal just upgraded to 8.7.10 I have recently discovered an issue where webforms that have an emal handler set to include a BCC ...
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

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, ...
2
votes
2answers
1k views

Multiple Webforms in one View

I have 4 webforms on a site and I would like to be able to display the data from each of those in a table using a view. Each of the forms has a "First Name" "Last Name" "Phone Number" and "Email ...
0
votes
1answer
341 views

Parameters with uppercase letter?

Is it possible to handle querystring parameters in webform module in Drupal 8.x with Uppercased letters like in this example? example.com?collectionId=123 (notice uppercase "I") Webform fields ...
2
votes
2answers
3k views

Using theme hook suggestions for webform confirmation page

I've been trying for the last couple of hours and failing to use theme_hook_suggestions for custom webform confirmation templates. I want all webforms on a specific content type to use a particular ...
0
votes
1answer
875 views

How can I add new components to a fieldset?

I'd like to customize the webform everytime the user saves a webform node. I'm using rules with a custom action that updates the webform when the user saves the node. Looking at devel, I haven't ...