Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
0answers
7 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
8 views

Drupal 8 webform translated. Webform-block on page selected/listed not showing up

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
19 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
33 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
19 views

Custom workflow with commerce 2 [closed]

I need to create a shop with the commerce module to generate memberships. A user must be able to order multiple memberships for different people. I need to know your opinion on how to create these ...
0
votes
0answers
6 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 ...
1
vote
1answer
34 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
17 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
30 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
18 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
5 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
19 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 ...
0
votes
2answers
52 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
27 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
14 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
19 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
13 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
27 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
27 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
25 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
30 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
22 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
18 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 ...
0
votes
0answers
35 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
49 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
0answers
52 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
15 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
23 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
14 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 ...
0
votes
1answer
22 views

Simple rental system for an estate agent

I've been asked to build a simple rental system for an estate agent. He rents pieces of land to farmers so I wanted to use Drupal for that. I've created two content types: Land and Farmer. How do I ...
0
votes
0answers
35 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
18 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
30 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
30 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
23 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
20 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>...
0
votes
1answer
26 views

How do I use a token to set the default value of a date field to the current date?

When I go to the build tab of the webform and click edit on the date element, I can find the default value setting under the advanced tab in the element editor. The help text says I can use tokens, ...
0
votes
0answers
8 views

How to clone email settings in webform

When I clone a form with Webform, it doesn't copy the e-mail settings (Standard emails (always send). It would save a lot of time if this part of settings could be saved while cloning a form. Thanks ...
1
vote
2answers
40 views

Control Webform's date field (datepicker) from JS

I have to change number of months that's shown in datepicker of my date field in Webform, on desktop I need 2 months, but on mobile just 1. I'm not able to control that using JS, so I created patch ...
1
vote
1answer
25 views

Can I hide a webform?

I would like to pilot a webform for a period of time and have the option to hide it vs. delete if needed. How do you hide a webform from your site?
0
votes
0answers
16 views

Configure emails for webform

I am looking at two sites both have webform 7.x-4.18 plus mimemail and and mailsystem. when configuring emails for webforms, one site shows 3 options in the E_MAIL HEADER DETAILS: subject, from ...
0
votes
0answers
31 views

Pass node tokens to a webform on a paragraph?

Drupal 8.6.5 Webform 8.x-5.2-beta1+16-dev I have a webform as a field on a Paragraph. The paragraph is referenced from a node. I need to be able to pass field values from both the node and the ...
0
votes
0answers
19 views

Webform Validation doesn't recognise conditionals

I have a form that requires "conditional validation". I'm using Drupal Webforms, it's inbuilt Conditionals and Webform Validation modules. Here's the scenario: Question 1 = Yes / No If Question 1 = ...
0
votes
0answers
17 views

Download private files in s3bucket from drupal8 webforms

I am using webforms module for career form in my drupal8 website and the resume files are uploaded to s3 bucket as private. Is there any way to download the resume from backend(admin)? It was able ...
0
votes
1answer
19 views

Datelist element in webform not working

I was just going through webform configurations and I changed the date list element format from default to raw. After doing this Im not able to add any element of type dateform to my webform and also ...
0
votes
1answer
66 views

Return data from WebformHandler to Controller

I created WebformHandler where I need to get data entered in the form on submit. It's something like this: <?php namespace Drupal\xxx\Plugin\WebformHandler; use Drupal\Core\Form\...
0
votes
2answers
41 views

How do I programmatically get the link for a webform submission?

I have managed to create a table of webform submissions of a particular type, thanks to the answer from a question posted here. What I would like to do now is add a link for each webform submission, ...
0
votes
0answers
14 views

Webform and Shopify webhook have different IP addresses

I have a website set up with the Shopify Modules where customers can place Shopify orders. When a customer adds an item to their cart, they fill out a webform on the website and then add the item to ...
0
votes
2answers
44 views

Webform in block not displaying recaptcha

I have a webform (drupal 8) inside of a block on the front page. I added the repatcha module and see that if the webform is not in the block it displays fine but when it is in the block it does not ...
0
votes
1answer
29 views

Add class to Previous / Next Button

In Webform 7 I was able to add classes to the Previous / Next Page button but can't seem to be able to do this with Webform 8. Is there a way to do this?