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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

0
votes
0answers
15 views

Howto check if a form contains custom type field in hook_webform_submission_form_alter?

How to check if my custom element is added to form in hook_webform_submission_form_alter. Below is the screenshot what i am getting in form array. Custom composite element can be nested under 3 or 4 ...
1
vote
0answers
24 views

Add custom fields to an existing entity

I would like to add extra fields to an existing entity WebformSubmission : Assigned to (entity reference to a user) Status ( taxonomy term reference) for these two fields I will need it to be ...
0
votes
0answers
27 views

How do fix a broken/missing handler?

I have been experiencing issues with a multipage Webform that I am trying to add AJAX. Turns out there seems to be more to it besides the AJAX. When I reach a specific page (3 out of 7), the webform ...
-2
votes
0answers
17 views

Using AJAX on a multipage form

I have a multipage webform and I am trying to add AJAX to elements on page 3. Is there any special considerations that need to be added to a multipage webform to make AJAX work. I am using Drupal 8.5....
0
votes
1answer
33 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 ...
-3
votes
1answer
25 views

display webform table data based on serial no

i want just like for example display hospital based on location webform data from webform storing data of all hospital. How to fetch data from webforms table and display it on page just as searching ...
1
vote
0answers
32 views

How to pass Webform elements from controller to custom twig template

I'm pretty new to Drupal and probably this is simple but I got stuck with this. What I'm trying to do: I have created a custom module where I have defined a custom route to display my webfrom in ...
-1
votes
0answers
43 views

Understand how to sum easily the total sum of 40 + 90 = 130 [closed]

I use drupal 8 and test webform 8 module for a year. The example of calculated elements using Ajax have been added to webform version 8.x-5.0-rc16. Great!!! the calculations A + B = C are done .... ...
0
votes
1answer
22 views

Empty field value showing in webform email content

I have a file attach field in my webform. When i have submit my webform without this field,in my email content showing like "ATTACHED FILE: [webform_submission:values:attach_file]". I have checked "...
0
votes
0answers
19 views

Dynamic options/values (by ajax depending on choices / changes on other fields)

What would be easiest way to have dynamic radio buttons on Webform? By dynamic I mean that the options can change upon changing other controls without submitting. I think easiest would be to use ...
-2
votes
0answers
16 views

Webforms D8 , How can I add a data field with today date as a default value?

I'm using this module https://www.drupal.org/project/webform for D8. I need to send the created date of each register as a parameter in a POST call. Can anyone help me, please?
0
votes
0answers
20 views

Create custom email subject

So, I know how to use the tokens from the webforms to add them to the subject of the email confirmation that is sent out, but I am wondering if it is possible to automatically include the user's ...
-1
votes
0answers
11 views

Advice needed for form fill based workflow |drupal maestro webform

I've spent some days with drupal8-webform-maestro modules and after a couple of mistakes in modules config its now the 3rd time I'd need to restart it from zero. I'm fed up with it. Basically I cant ...
0
votes
0answers
12 views

How to add an error message after checking the form in the right place?

There is a form component on which I added a function <?php $form['submitted']['tel']['#element_validate'][] = '_custorm_validation_form_validate'; ?> in the function itself wrote the ...
0
votes
0answers
17 views

Simple Twig conditional not behaving as expected with webform_views

I have a webform with a Checkbox (i.e. boolean) field called 'Paid'; I'm using webform_views to include and rewrite it in a view (there's some extra code which adds a link to the payment page, but I'...
0
votes
0answers
17 views

Send email using emails from webform values

I am using webform and webform workflow; I want to be able to send out emails to the emails addresses the user inputs in the form once the status of the webform is changed. I am trying to do it with ...
1
vote
1answer
11 views

Webform tokens - token to return the 'option value' not 'option text'

I am trying to pass the value of fields from one wizard page to another page . I can use the [Webform_submission:values:element_key] to pass most values. However on the select list I want the 'option ...
0
votes
1answer
10 views

webform 5 access other webform tokens

Is there a way to access tokens of another webform ? I have users of one role who need to evaluate in a webform files uploaded by users with another webform
0
votes
1answer
17 views

global webform submissions admin page per user

I have a site where users fill diferent webforms and they can visit formX/submissions to view/edit their own submissions for every particular webform. Now I need to give users something like a ...
0
votes
0answers
28 views

Webform select option component limit error

I am prepopulating the list of District from CRM (netfroum) in Drupal, but by using Select Option, I am getting an error that "The field supports a maximum of 500 options. Please reduce the number of ...
0
votes
0answers
16 views

Webform working with csv file but not excel in drupal 7

Searched a bit, found some questions with csv files and excel, but didn´t worked out for me. I can download both csv and excel, and the csv file works fine, but my xlsx file is comming up with weird ...
0
votes
0answers
9 views

Webform csv file

I want to make a huge form (approximatively 30 fields, and these fields change in function of the first one), and I want to try with the webform module, but I don't know if this is the best solution ...
-3
votes
0answers
13 views

import Webform 8.x contents from CSV file [duplicate]

I have a CSV file which has the data for the Webforms 8.x Form. I want to import it using feeds 8.x. Please give me a step by step instruction on how to do that.
1
vote
2answers
93 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
33 views

Build custom composite webform

i want to implement a new webform composite element. I´ve copied the example and the example works. Now, i want to change the settings form:So i have createin my MODULENAME.module the following alter ...
0
votes
1answer
19 views

how to get webform title and category with no submissions in view or hook?

I have a survey form created with webform module.i have to display all survey form title with submissions and without submissions with webform category on home page.but it displaying only submitted ...
1
vote
1answer
134 views

User may edit their webform submissions, but only while in draft

I don't want users to be able to edit their webform submissions after they have been submitted (in this case it's an application form that needs to be reviewed). The trouble is, they also need to ...
0
votes
1answer
19 views

How to allow authenticated user to view others data?

My sales staff fills in a webform with uploaded pics The Service department needs to view the submitted pics for the installations. Wondering if a module is needed to allow an authenticated user to ...
0
votes
1answer
5 views

d8 webform submission views how to exclude Action Apply to Selected Items

The view created using the webform views integration module.. all the fields are shown as desired. However the CBO box with choices to then apply changes is not wanted. Hoping it's a setting ...
0
votes
1answer
27 views

Programmatically setting a webform submission to draft in presave

I am trying from within a hook_webform_submission_presave() programmatically set a webform submission to draft. We are creating an event registration system with webforms and some events require ...
0
votes
0answers
12 views

Modal Webform How To Get Page Title Value

I am using modal forms to display a web form <a class="ctools-use-modal ctools-modal-modal-popup-small callback ctools-use-modal-processed" href="/modal_forms/nojs/webform/122">Get a Call Back&...
1
vote
1answer
22 views

How to embed webform to update existing submission

I'm trying to display a webform through a module controller. The webform display works as it should but I need to update existing submission data and instead of updating the existing submission a new ...
0
votes
2answers
48 views

How to create conditional checkboxes that hide each other?

I have 2 check-boxes. Checkbox 1: Attend event for 1 day Checkbox 2: Attend event for 2 days If a checkbox is selected, I want to hide the other one. I don't want the user to be able to select both. ...
0
votes
0answers
23 views

How to theming on webform field element in single twig file (for example webform--contact-us.twig.html?

I have tried a lot to get form element in webform twig file. But variables are not coming.For example : when I'm using {{ element.elements.name }} in webform--contact-us.twig.html , nothing I'm ...
0
votes
0answers
23 views

Allowing specific role to add administrative notes to webform without giving full access

We are running webforms on Drupal 8.5.3 and have 8 separate forms created with a user role to access results for each form. The role only allows the user to manage Results only. They don't have ...
0
votes
0answers
38 views

Views Global: Combine fields filter (exposed) not working

I created a view displaying the different submissions from my webform and some of its values. A few of those values are Name and Number. I tried to create a combine fields filter for it, so that it ...
0
votes
1answer
35 views

How to change Stars in Webform-star module?

I have just implemented the Fivestar option in one of the evaluation form created by webform, I used the Fivestar module and Webform-fivestar module. But now I want to change the stars with different ...
0
votes
2answers
160 views

Custom code for after submitting a webform

I have found this question here to fit my exact needs since the rules modules is not ready yet How to create a node out of a webform submission? I am hardly a coder, can someone please explain where ...
0
votes
1answer
109 views

Get the form ID from a Webform entity

I need to output the form id of a webform entity. I load a chunk of enabled webforms directly from the database by using \Drupal::entityTypeManager()->getStorage('webform')->loadMultiple(); ...
0
votes
1answer
25 views

How do I get the associated node from a webform entity?

I'm preprocessing a webform using hook_webform_submission_form_alter. The webform is being rendered as a node field. How can I, from inside my form_alter hook access that node? function ...
0
votes
1answer
26 views

Alter Ajax callback on Webforms

I'm loading a webform on a Ajax modal dialog. The form submission is also set to Ajax. I want to alter the Ajax submit callback so I can have more control over the form behaviour. I'm not being able ...
0
votes
1answer
46 views

Adding a webform in a webform confirmation

I've been given a requirement to allow for a webform to be inserted into another webform's confirmation page. At first I tried this with a token I could insert into the confirmation message, the ...
0
votes
1answer
20 views

Config webform for read

It is posible config webform for read but not submmit? I need that anonymous user see webform but only authenticated user can send.
0
votes
1answer
32 views

Fire a rule only when a specific webform has been submitted

I am using the latest version of both drupal 8 and webform 8 Here is my use case: I have on my drupal 8 website 3 different webforms (webform A, Webform B and Webform C) Now, I want to fire a rule ...
0
votes
1answer
55 views

Create nodes out of Webform submissions

We are using Drupal 8 and trying to solve this problem: A form shall be presented to website visitors that asks them to submit questions (in our case: concerning nutrition) and give some structured ...
0
votes
0answers
12 views

Is there a way to utilized a webform select option group in Search API Facets?

To be a bit clearer (and hopefully this makes sense, though my caffeine level is a bit low, so I apologize if it does not make sense): I am using the Webform Module, and I have a select list of ...
0
votes
0answers
13 views

Getting redirected on drupal's install.php submit of multi-step form

I am getting redirected on install.php when I attempt to click on next button on a webform's multi-step form installed on drupal 8. This is happening on my localhost local machine and the same thing ...
1
vote
1answer
20 views

Renaming a webform handler - old class stuck in DB despite clearing cache

I'm creating a custom webform handler plugin based on the advice here, adding the class, in the correct directory, to an existing module. I got the class name / some of the docblock info wrong ...
3
votes
1answer
78 views

How is user input sanitized?

I had to develop a Drupal 8 based website for a client. This client has a quite strict configuration for its firewall and filters the characters used in POST values. It happens to be a bit too ...
2
votes
1answer
20 views

Webform what is format required to prepopulate datetime element

Sending default date format (medium) from VIEW rewrite results link, URL adding ?apptdatet={{ field_apptdatet }} This never fills the webform datetime field. The value is shown in the url as medium ...