Skip to main content

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
1 answer
18 views

How to submit checkbox values as a string in a HTTP POST handler?

When using a REMOTE POST method to send data to a URL ... And using a checkbox field type, the data is submitted as an array. We need to submit it as a concatenated string. Is there a setting ...
alphex's user avatar
  • 68
0 votes
0 answers
24 views

Advanced Composite Elements will Disable all Elements on Checkbox Change

pretty new to Drupal. I've been using the Webforms module and have come across a troubling issue with interactions between the checkbox element, and the advanced_address and advanced_telephone webform ...
Keiji's user avatar
  • 1
0 votes
0 answers
26 views

How can I implement individual page breaks for each question in a webform with a dynamic progress tracker?

I am working with a Drupal 10 project, and have set up a webform that includes multiple groups of questions. My webform is structured into the following six groups: Intro question 1 question 2 ...
Hasse Wilson's user avatar
0 votes
0 answers
28 views

Webforms file upload automatic saving to /tmp (_sid_) causes vulnerability?

We've recently encountered a potential security issue with Webforms file upload field automatically saving any selected file to /tmp (/_sid_), even when the filesystem is private. The current file ...
Claire's user avatar
  • 11
0 votes
0 answers
37 views

Webforms AJAX. How to change the value of a textfield (f_text) when the user select a value in a select field (f_select) using Drupal 10 api ajax

Following the instructions in Ajax forms I try to apply this to a webform. I built a webform with two fields. And in my_module.module, I add a hook_form_alter() with the following code: $form['...
Susana Delgado's user avatar
1 vote
1 answer
51 views

How to define a pathauto pattern for webform?

When creating a new form in my Drupal 10 project, I would like a URL alias to be automatically be created for the form with /form/* as the prefix. I can set pathauto rules for content types, but not ...
Interlated's user avatar
  • 1,435
0 votes
0 answers
13 views

Ignore webform and wobform_options configuration during cex

I am using config_ignore and webform_config_ignore module in my drupal project but both doesnot seem to ignore webform configuration exports during lando drush cex. Any way by which i can ignore ...
Gaurav Gupta's user avatar
0 votes
1 answer
45 views

How to Remove Deprecated Webform External Optional Library?

The status report for my site displays this warning: Deprecated modules installed Deprecated modules found: Webform Algolia Places. The library is definitely installed (I see the files in the site's ...
Scott Hollenbeck's user avatar
0 votes
1 answer
22 views

Cannot write the token [webform_submission:url] to a webform field

I have a form where images amongst other things are submitted. I need to be able to relate back to the original webform submission where they were submitted in a Drupal View (that is not based on ...
ChumKui's user avatar
  • 183
0 votes
0 answers
17 views

Reference in inline-block default data

I'm using Layout Builder. In one of the components I use the webform reference field, in order to reduce duplication of webforms I created variants and added a custom select widget to choose between ...
user114861's user avatar
0 votes
0 answers
40 views

Remote post GET request urlencoding

I am using Drupal Webform and am writing a custom webform handler. I do not have control over the endpoint that I am submitting to. The requirement is that it is a GET Request and the url is with ...
user110123's user avatar
0 votes
0 answers
20 views

Why does my webform not submit if I use a View element that has a VBO field as part of the View?

I have created a form using the webform module (as opposed to hand crafting) where I want people to click on a Media item to set it 'authorised'. It is a Media type (I have called 'Submitted Image') ...
ChumKui's user avatar
  • 183
0 votes
0 answers
13 views

How to control webform confirmation message modal interactivity

I am using the webform module v6.2.4. On my form, when a user submits the form, they get a confirmation message in a modal window (not using ajax). The modal seems to render with both an "x" ...
S.keeb422's user avatar
0 votes
0 answers
24 views

Webform Composite Elements Composite won't sort or allow filtering

Webform Composite Elements Composite (such as "State/Province" of "Address") won't sort or allow filtering in a view. Is there a way to achieve this?
Steve Truitt's user avatar
0 votes
1 answer
46 views

Best practice design route for an estimates table

I need to allow users to store monthly estimates so that they can be later retrieved in our management information system. It would look something like this but with the next 12 months. The first ...
ChumKui's user avatar
  • 183
0 votes
1 answer
42 views

Impossible to translate string from webform

2.2 in a drupal 10 solution. I am trying translate via the UI the following error that I can see at WebformElementBase.php $form_state->setError($element, t('The value %value sdsadad %name ...
Potney Switters's user avatar
0 votes
0 answers
23 views

#ajax callback doesn't work on form loaded via AJAX from a JavaScript file

Having trouble getting an #ajax callback to work, initially user clicks on a date on the calendar and an ajax request is made to get the time slots, the time slots form have an ajax callback attached ...
Frederick Castello's user avatar
0 votes
0 answers
13 views

Webform tokens used as radio options aren't evaluated when used in handler

I'm working with a Webform where the client created two text fields that each ask for a person's name ("Who started this case?" and "Who is the other party?"). A later Radios other ...
Kurt's user avatar
  • 73
0 votes
1 answer
24 views

How can set action for edit and view the web form submission record?

I create a view page using the webform submission result. How can set the action for editing and view the particular submission result record?
Santhosh Sivan's user avatar
0 votes
1 answer
27 views

How can I swap select options based on the response of a previous select?

I tried following the instructions to use '#ajax' to try and get these values to swap but nothing seems to be happening: <?php namespace Drupal\webform_test\Form; use Drupal\Core\Form\FormBase; ...
blu's user avatar
  • 450
0 votes
0 answers
38 views

Get select list key within computed twig

I have a custom select list in a webform In another field , I have some computed twig , I would need to get the selected value's key to apply some processing on the value How do I get the select list'...
Marel's user avatar
  • 1
0 votes
0 answers
23 views

Set webform composite rows to another field's value

I have a field to enter a number and then a composite set of fields. Is there a way to set the number of rows in the composite to be the number entered in that separate field? Preferably, it would ...
Prizem's user avatar
  • 33
0 votes
0 answers
100 views

reCAPTCHA missing in webform

We have built a Drupal webform with ten pages, each containing one question. The last page includes both a question and a captcha. Users can check the captcha and submit the form. We are using Ajax ...
Abhi Das's user avatar
  • 121
0 votes
0 answers
99 views

I need to redirect Anonymous user to login page

I have a webform that is restricted to Authenticated user. The form is working as intended. When Anonymous user try I access the form they get The website encountered an unexpected error. Try again ...
Moussa's user avatar
  • 1
0 votes
1 answer
83 views

Migrating webforms

I am trying to migrate webforms from a site running drupal 8.4 to 9 with the former's database as source. The source site has more than 1000+ forms, so I prefer to opt for the migration framework ...
optimusprime619's user avatar
2 votes
0 answers
17 views

Display 'Per user submission limit message' as plain text rather than a warning message modal?

I am using a 'per user submission limit' message on my webform, to restrict users to one submission every 15 minutes (to reduce spam). I would like it to maintain the confirmation wording for the ...
Hysteria's user avatar
0 votes
0 answers
25 views

Multiple Submit button conditions not behaving as expected on Webform

I have set up the following conditions on the submit button on my Drupal 10 Webform: State: Disabled if [ALL] Number Field 1: empty Number Field 2: empty Text field: value is not "TEST" ...
hockey2112's user avatar
  • 1,244
0 votes
0 answers
59 views

Webform Composite Element Loses Required Asterisk After Add Item

My webform contains the following elements: A group_nomination radio element. A first_name text_field element A composite element with a first_name text field. All elements are required. The ...
esod's user avatar
  • 329
0 votes
0 answers
21 views

Block access to webform using a handler?

I have a webform that that uses some query parameters to set required fields. If the parameters are not provided, I want to block access to the webform. I can currently get the handler to close the ...
Nick Perkins's user avatar
1 vote
0 answers
44 views

What is the purpose of the "Webform (default)" text format?

Recently I've found that the Webform module provides a text format named "Webform (Default)". I admit that I do not have a rich experience with this complex module, so I have some questions: ...
quilx's user avatar
  • 21
0 votes
0 answers
29 views

The Security review module says "Untrusted users are allowed to input dangerous HTML tags" when webforms are used

I get the warning in the title of this post from the security review module. By clicking on "details" an explanation is provided about the possibility of using dangerous tags (the img tag in ...
quilx's user avatar
  • 21
0 votes
1 answer
53 views

Webform additional settings

I have a layout builder with components on my website. Some of that components using field entity reference webform. And when CM's adding some of that components they need to have ability to decide ...
user114861's user avatar
0 votes
0 answers
36 views

PDF in Private files cannot display inside the browser

I have drupal 9 webform and files element (private file system), if i access the file its always downloaded. I've add header Content-Disposition: Inline in the nginx conf # Handle PDFs to display ...
tinohuda's user avatar
1 vote
0 answers
56 views

How can I GET all the webform submissions via REST?

I am able to retrieve individual records but not all. How can I GET all the webform submissions in POSTMAN?
Mihail Novak's user avatar
0 votes
1 answer
48 views

What is the token for the title of a node referenced by an entity select field?

I have a webform with an Entity Select field whose machine name is topic, which references nodes. I want to to display the title of the referenced node in a confirmation email, using a token. The ...
arnoldbird's user avatar
  • 1,277
0 votes
0 answers
50 views

How can I upload files to a submission using the REST API?

I am trying to upload PDF files to webform submission using REST API. I used webform rest module rest webful service module to add content in the webform, i am able to add content but unable to add ...
Aatif Chevli's user avatar
0 votes
0 answers
56 views

Using Webform to upload a media file?

I have the Media Module enabled and have a Media type defined called Approved Image. This is identical to the standard Image but has just one addtional boolean field called 'authorised'. I can create ...
ChumKui's user avatar
  • 183
-2 votes
1 answer
45 views

Custom structure for multi-step webform's submission

I need to send webform submission data in an email with a specific structure: <h2>Wizard Page 1 Title</h2> <table> <tr> <td>Element Title</td> ...
Lena's user avatar
  • 1
0 votes
0 answers
21 views

Allow defined user role to create webform but not alter form settings

I have searched, but have not found an answer to this question, and am wondering if I am just missing something obvious before I submit a bug report. Drupal 10.2.6, Webform 6.2.2, and an otherwise ...
Mike Cermak's user avatar
0 votes
0 answers
22 views

Can I set a default image for an image field in a webforms form?

Is there a way to set a default image file to an webforms image file field type so that the image shows up instead of a link to it for authenticated users? I know there is a way to have the image show ...
Guybrush Threepwood's user avatar
0 votes
1 answer
30 views

Cannot find file input

Im new here and currently building my first Drupal website. Im having trouble creating a webform because i cant find the file input option to include in the form. When i googled it, i found that the ...
drupalnewbie99's user avatar
0 votes
2 answers
143 views

How can I alter the element markup in a multi-step form?

I have built a multistep webform using webform version 6.2.2 and Drupal 10 and I want to show a summary element on each step that updates with the information of user input from all previous pages. ...
Jamesbeat's user avatar
0 votes
0 answers
21 views

Drupal multistage webform ECK entity reference token

I have a multi-stage webform where a user will select courses they wish to enrol a user too and on the last page it will confirm the products. This is being done as a checkbox populated by an entity ...
Alex Noble's user avatar
0 votes
0 answers
21 views

How to keep preview page active but not displayed in the progress line

In my form settings (/admin/structure/webform/manage/testing/settings/form) I have: Form preview settings > Enable preview page > Optional to be able to display the preview page, which I can ...
Andrés Chandía's user avatar
0 votes
0 answers
35 views

A little question about Webform Views Integration

Have set up the Webform module with Webform Views Integration. Created an additional view for webform submissions via cloning and alteration of 'Embed:Default', applied there a function from Views ...
Dre's user avatar
  • 1
0 votes
2 answers
125 views

Webform mail formatting broken after moving to symfony-mailer-lite from swiftmailer

In march 2024 we left swiftmailer and switched to symfony-mailer-lite. Everything looked well until we found that the font for mails which had no template specified in our theme had a default font ...
macbert's user avatar
  • 363
0 votes
0 answers
58 views

D10 Webform not sending emails - Email sending skipped: Send aborted by hook_mail()

I would like to send webform notification upon saving a webform, but getting "Email sending skipped: Send aborted by hook_mail().." I tried search, but no luck anywhere.. Drupal 10.2, ...
Zdeněk Nováček's user avatar
1 vote
0 answers
19 views

Can I output thumbnails instead full images on a webform email confirmation?

I have a form where people can upload images for approval. A confirmation email goes out saying thank you etc with an output of what they have uploaded using this token: [webform_submission:values:...
ChumKui's user avatar
  • 183
0 votes
0 answers
55 views

What is the valid value for Webform element type in form-element.html.twig?

I'm currently attempting to rewrite the form-element.html.twig to incorporate custom CSS based on the label display and field type for Webform element output. While I've successfully identified ...
CocoSkin's user avatar
  • 891
-1 votes
1 answer
24 views

Entity Checkboxes: How to have one value displayed in form but another value in preview and submission?

I want to use Entity Checkboxes (referens to a node type) to display the Title from nodes as checkboxes in the form but to display another field from the node (my_text) in submission. Tried to use ...
Hans Gustavsson's user avatar

1
2 3 4 5
53