The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
23 views

Maestro Webform Integration. “Field langcode is unknown.” when trying to run Orchestrator

I'm on Drupal 8 trying to add a simple workflow to a contact form. I have implemented this locally with Maestro Webform integration and it worked out alright. When implementing this on my server, the ...
-3
votes
1answer
39 views

Wysiwyg editor for webform 5

Is there a way to configure textarea fields in Webform 5 to use Wysiwyg editor ? preferably without coding and overlay capability (I mean something like https://www.jqueryscript.net/form/jQuery-Plugin-...
0
votes
1answer
135 views

Get the node ID value after submitting an attached Webform to that node

I have a Webform attached as a field to a specific content type. After the node is loaded and the Webform is submitted, I am using the below custom webform handler to get the $webform_submission ...
0
votes
1answer
21 views

Show Description Field on Individual Webform Submission Result

I would like to include the description field when viewing individual webform submissions for each component. The standard webform individual submission display shows the label and the answer, but the ...
2
votes
1answer
66 views

Get paths of all open webforms

I have a project to QA all of our open webforms. We have about two screens (using the default pager) of open webforms. The simple-but-hard way is to copy each link, but I wonder if there is an ...
0
votes
1answer
175 views

How to get the referenced node id in a webform?

I have a webform that is connected to a node in drupal 8. When the webform loads from the node link I need to get the source entity id from url. How can I achieve that in my custom module? the url is ...
0
votes
1answer
71 views

How to use tokens in the Completed URL?

I need to send data in the URL to the receiving server so that two fields from a survey form is put in the Completed URL string. It looks like it should be possible to use tokens for this, but I can't ...
0
votes
1answer
25 views

How to add a checkbox to form builder component settings form?

I have webform and formbuilder modules installed. In the file field settings form I want to add an extra checkbox field just like the required field but I am unable to do that. I can add it to the ...
0
votes
1answer
30 views

Is there a way to to allow webforms accept case sensitive keys?

I've been using the webform module for Drupal 8, and initially it appears as though the webform submission handlers only send through submission keys as all lowercase. Is there any way to get around ...
0
votes
0answers
51 views

Webform Custom validate and element alter

I'd like to know if there is any way to: 1- Perform the validate of a webform programmatically from custom module. 2- Modify the value of some element before rendering the form from custom module.
0
votes
0answers
27 views

How can I redirect to a different page after webform submission with a custom href attribute?

I have this snippet in one of my nodes folder: node--experience.php At the moment, the section has a download button which holds a URL: // Download Info pack (PDF). if ($entry_info) { //var_dump(...
0
votes
1answer
30 views

Rules add date variable from webform submission

I have a webform where the user also submits date. I would like to populate a date type field with the submitted date. I tried making variable by "Add variable", but I do not know how to access my ...
0
votes
0answers
14 views

How to properly render and alter a webform submission edit form via ajax

This is a really hard issue to put into words but I'll try my best. In this scenario, I'm rendering a submission edit form and attaching an ajax button to run a custom callback. I'm not sure if this ...
0
votes
0answers
21 views

Load library only on webform submission pages

I've made a custom module, and I would like to load the library only on the Webform submission pages. The url looks like this: /admin/structure/webform/manage/form_name/submission/{{submission number}...
0
votes
1answer
295 views

Programmatically delete a webform submission by sid without first loading it

Drupal 8 project has a 2 webforms: Webform "ABC" Webform "123" Explanation of the process: When Webform "ABC" is submitted, a new "node" is created and the "Sid" used to create this node is ...
0
votes
0answers
23 views

Assign submission to a user referenced in a webform

I'm trying to solve this problem: A webform contains a user entity reference field User A submits a webform that references user B After submitting the data I want user B to be able to edit this (...
0
votes
0answers
18 views

Using Webform on Taxonomy Page and using that Term's Values

Say I have a Vocabulary called Branches which has an email field. I wanted to attach a Contact webform to the pages of these Branches where an email will be sent directly to the email field value for ...
0
votes
0answers
30 views

Drupal 8 webform translated. Webform-block on page selected/listed not showing up (where is the manual)?

Drupal 8! Webform module! I have made a drupal webform and added it to my webpage with creating a block. The block is restricted to the page by url. Everything worked well with this method. With ...
0
votes
0answers
37 views

Custom handler isn't displayed in the handler list on the development server

Webform custom handler is not showing in DEV server but it works in local.It makes very difficult to save additional information. namespace Drupal\demo_module_dym\Plugin\WebFormHandler; use Drupal\...
0
votes
0answers
134 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 ...
0
votes
0answers
9 views

Webform response - user permissions

Using Drupal 7 I have created a webform where submissions are entered by any authenticated user. The goal is to have one user (not an admin) have the ability to see the submissions and respond in the ...
0
votes
1answer
111 views

Upon submitting a webform, set a date field on the article node equals to “current time” + “X minutes”

I am using the Field Timer module to display countdown timer on my article node. This module will take the value of the date/time field (my case: field_article_datetime) and convert it into a ...
0
votes
1answer
26 views

Can webform conditionals require filling one of two fields?

The snippet below is one of the ways I attempted to require that the user fill out at least one of phone no. and/or email using webform conditionals. This one came closest to working. The logic is ...
0
votes
0answers
44 views

about view entity reference

I am new to Drupal 8 and I am trying to figure out making a dropdown list with using webform submission. I have two webform contents which are Class and Student. Class stores class and description. ...
0
votes
1answer
65 views

for anonymous user, webform not submitted because of private file

I have one webform which contain the private file field. As admin user: i can upload the file and submit the form. As anonymous user: i can upload the file but while saving the form, i am getting '...
0
votes
0answers
20 views

Webform field unknown

I am using a clean install of Drupal 8 with REST API enabled and the webform module install. I have created a basic webform with all the correct permissions and enabled /entity/webform_submission in ...
0
votes
1answer
21 views

Admin Access for Webform Entries

The following problem has occurred: A client fills in a reservation form, but the time requested is already fully booked. The clerk and the client negotiate a different time, and the clerk wants to ...
1
vote
2answers
109 views

looking for equivalent webform select view module on Drupal 8 [closed]

I am a new to Drupal 8 I am trying to make select options with webform submission. What module do I need? and How can I make this select options with that module? Thank you very much! implement
0
votes
0answers
35 views

Access rights for file upload in private section

On my Drupal 8 site, I want to use the Webform module with file upload. It works, if I use public file space (within the web root directory), but fails on private file space (outside the web root ...
0
votes
1answer
21 views

Can a Webform display the last submitted version of instead of creating a new submission

I have a web form that is embedded into a field on a content type and wondering if the form has been already submitted can you display the webform/manage/webform_name/submission/webforn_numer/edit ...
1
vote
1answer
44 views

Disable (Close) webform form dynamically

We would like to be able to put our site into a "read-only" mode prior to doing major releases etc. I was hoping to achieve this for forms on the site by enabling or disabling my custom module, which ...
0
votes
0answers
44 views

Webforms uppercase key causing Save issues

I have inherited a project, the project has a large number of webforms, each of these forms has a large number of submissions. Recently someone has tried to edit the form, the problem is that there ...
-3
votes
1answer
29 views

How to modify contact form

I'm trying to modify the contact form to add a privacy clause before the "Send" button, I have to add a text and two mandatory check boxes. But I just started with and I have not much idea. Thanks.
1
vote
1answer
30 views

How do I programatically get access to the file uploaded to a webform after a submission?

I am using business rules custom action to access the submission data on entity insert. I am able to get the file id and ultimately the realpath. the real path is sites/default/files/private/webform/[...
0
votes
0answers
40 views

Can't get correct sequence and link to file in preprocess swiftmailer

I'm trying to pass Drupal 8 core Contact form data to a custom designed Swift Mailer template. The way I'm trying to do this is by getting all the fields dynamically to the template. function ...
0
votes
1answer
91 views

How to use HTML in a webform component's title?

We have a checkbox which's title should have HTML (<sup></sup>) but its rendered as text rather than HTML. How to use HTML in a webform component's title?
0
votes
0answers
101 views

How do I check the value of a token?

How do I validate a webform token in the WYSIWYG using PHP Filter format? I have enabled PHP Filter and tried a simple conditional if statement but return an error. Eg: if ([submission:values:...
0
votes
0answers
24 views

Access encrypted file uploaded by anonymous user

I have a problem with webform encrypt. When I upload a file (encrypted field) with an anonymous user and submit the webform, I can't access file in the webform result with the superadmin (user=1). For ...
1
vote
0answers
154 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 ...
0
votes
1answer
66 views

How do I validate a number against a list of valid numbers? [closed]

I want to validate a license number against a list of license numbers stored in vocabulary as taxonomy terms. The returned boolean value should then activate other form fields which are disabled by ...
0
votes
1answer
140 views

Webform 'add element' and 'addpage' buttons do not appear

I am new to Drupal. I have Drupal 8 and installed Webform 8.x-5.1 module. I can create a new webform but 'add element' and 'add page' do not appear so I cannot add any elements to the form as I see on ...
0
votes
1answer
52 views

Custom Body of Webform email handler missing text area

When selecting default, I have the html appearing. Selecting twig will work as well. Selecting Custom Body changes to a blank area with no way to enter code. This happens on both lamp and live site....
0
votes
1answer
151 views

'Add another' fieldset on a multi-step webform

I have a multi-step webform using ajax (I'm using webform steps and webform ajax modules). The webform contains several pages (i.e education, career and experience). In education page i have the ...
0
votes
1answer
17 views

Formatting options in Webform Select field

I have a select field on a webform with 20+ options for the user. The default is a long list of options to select from. Is there any way to have the options broken into columns for the user to choose ...
1
vote
1answer
131 views

Add custom ajax command to ajax response after webform is submitted

What I'm trying to do is to invoke some javascript after a webform is successfully submitted by ajax. To do that I followed this advice and created an EventSubscriber to intercept ajax response and ...
2
votes
0answers
22 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 ...
0
votes
0answers
39 views

Validation in a webform

I’m relatively new to webform and was able to create few with some basic functionalities. Have a question, is it possible to implement this form (https://www.revenue.state.mn.us/local_gov/boa/Pages/...
0
votes
1answer
232 views

How to use tokens in webforms?

I'm trying to use the [current-page:url] token in a webform hidden field (as the default value) but the submission shows "[current-page:url]" literally. Am I missing something?
0
votes
0answers
32 views

Adding an asterisk via custom CSS is giving a 403 error

Using Drupal 8 and the Webform module, I am trying to add an asterisk to a required field label using the Custom CSS option in Webform by using this CSS style. .form-required:after { content: " *"; } ...
0
votes
1answer
111 views

webform css styling twig email

Is it possible to add inline css styling to a twig email template? Not as a source file reference but by inclusion of css within the template similar to html <style>...</style>...