Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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
0 answers
6 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
2 answers
18 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
1 answer
64 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
14 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
-2 votes
0 answers
26 views

Appointment scheduler with webform with setting to select/enter email

Following the scenario for appointment tool In first step there is a calendar where user select the date. In second step user selects the time for the date selected. Remaining steps are contact form ...
Sharique's user avatar
  • 207
0 votes
0 answers
12 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
21 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
38 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
16 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
13 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
  • 179
0 votes
0 answers
37 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
20 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
0 votes
0 answers
24 views

Webform sending emails when submission is created and completed - duplicate emails

We have a webform set to email both a notification and a confirmation after a user submits. Under ADDITIONAL SETTTINGS, Send email, only "When submission is completed" is selected for both. ...
tcweb's user avatar
  • 1
0 votes
0 answers
21 views

Change webform error status message

I'm working on making my webform on my site (D10) completely accessible. When I'm submitting my form empty I get a status message because I have two required fields. The message is: 2 errors have been ...
Joost's user avatar
  • 1,348
0 votes
1 answer
29 views

Adding price values in webform with Twig

I'm using Drupal 10.2.4 with webform 6.2.2 I have a content type extras with a field_prix langcode: fr status: true dependencies: config: - field.storage.node.field_prix - node.type.extras ...
Morgan P's user avatar
1 vote
0 answers
42 views

Spam protection for headless webforms

I'm investigating headless Drupal for a new (Drupal 10) site and trying to understand how to protect the webforms from spam. I'm planning to use the Webform REST module to help build/submit the forms. ...
Hadden Uff's user avatar
0 votes
0 answers
9 views

How to set different name for an element in form and in preview webform?

I have generated this element: addlabel_01: '#type': textfield '#title': 'Add label' '#maxlength': 2 '#size': 160 '#autocomplete': 'off' and I need to show a different ...
Andrés Chandía's user avatar
0 votes
3 answers
40 views

How do I hide the wizard page title?

Webform Version: 6.2.2 I need to hide the wizard page title, but I can not, how it can be done? I have: identify_01: '#type': wizard_page '#title': 'Recognise 01' '#open': true So I need to ...
Andrés Chandía's user avatar
0 votes
0 answers
22 views

Webforms and Groups Modules Interactions

I have webforms and groups modules installed - based on webform documentation my understanding is if I: Create a webform with an entity relationship field to a content type = blog Group A has 3 ...
Adam Fermier's user avatar
0 votes
0 answers
29 views

CSS/JS permissions

When I add CSS/JavaScript to webforms using the menu under settings-> css/js , it works for users with the administrator role, but it fails to work for all other user roles.The page loads but the ...
Aly's user avatar
  • 1
0 votes
1 answer
25 views

Delete a webform file by clicking on its name

I added a file field to a webform. Everything works fine but I need to style the file submissions differently. This is what I should get: the file name is displayed with an icon that allows you to ...
Sébastien Gicquel's user avatar
0 votes
1 answer
55 views

Create a custom $form_id for a webform integrated into a node?

I have used Webform many times before but this is the first time I am testing Webform Node : Provides a Webform content type which allows webforms to be integrated into a website as nodes. Usually, ...
Sébastien Gicquel's user avatar
0 votes
0 answers
35 views

How can i prepopulate a webform field before being loaded

I have a webform field called company name and i want that when the webform is opened it has a prepopulated value i want to do it from code because i will have a dynamic variable. THis is the code i ...
joel's user avatar
  • 1
0 votes
1 answer
36 views

Webforms Warning message: Update the Input Mask Library

I've been looking at the Warning message to download and update the Input Mask library to version 5.0.x for some time now. I've tried all the suggestions at https://www.drupal.org/docs/contributed-...
esod's user avatar
  • 319
0 votes
0 answers
11 views

How to create view of files upladed to webform with appropriate webform fields data?

In my webform user can attach multiple files. What I am struggling with is creating a view of files (so line per file, not line per webform submission) with webform files and appropriate webform data. ...
petiar's user avatar
  • 376
0 votes
0 answers
24 views

How to enable Submit Button after filling out the required fields in webforms?

I have Added A condition on webform where submit button is enabled when on required field is filled as in below screen shot. But when last name or phone code is filled the field enable, sometimes on ...
Z CHAMP's user avatar
  • 42
1 vote
1 answer
68 views

webform: Pass field value of dependant field in autocomplete lookup

Using Drupal 10.1.8 and webform 6.2.2 Done a bit of searching, and the only questions I find similar, are quite old. This one seems the best match: AJAX autocomplete based on other field value Now, my ...
ProxiBlue's user avatar
  • 111
0 votes
0 answers
30 views

Webform UTM Prepopulate

Running Drupal 10 and I have a webform with the setting "Allow all elements to be populated using query string parameters" enabled. I have a field called utm_source and I have a value in my ...
Delford Chaffin's user avatar
0 votes
1 answer
93 views

How to alter submission data when inserting a submission

I am trying to alter the data in a webform submission before this is being saved in to the database. In D7 i would do something like this: function mymodule_webform_submission_presave($node, &$...
hasse88's user avatar
  • 65
0 votes
1 answer
80 views

Programmatically updating a Webform submission with a file element doesn't remove the attached files

I am using Drupal 9.3 and Webform 6.1.7. I have a Webform that contains a file element and am building a custom form to update the submission data. I have found that when I submit my custom form I can ...
inertiahz's user avatar
  • 303
0 votes
0 answers
64 views

Webform remote post, configure fields

We have a webform and we need to send data to a multiple endpoints using remote post options. Drupal10 does not allow (?) to change field names when we send them to 3-th party systems and since we ...
Dmytro Pastovenskyi's user avatar
0 votes
1 answer
76 views

creating a webform block that can be used in Layout Builder

My problem is I've created a webform block type, and I can access it from Layout Builder, but when I place the block on a page in Layout Builder, I'm warned "This block is reusable! Any changes ...
Pat Leonard's user avatar
0 votes
1 answer
28 views

Commerce Paypal Order for Goods and Services

I'm helping a non-profit set up an order page on their website that would allow users to order physical products. I have commerce integrated with their paypal account and I can successfully collect ...
Cloudkiller's user avatar
0 votes
0 answers
25 views

Webform content creator - populate entity bundle field with a variable webform field

In my webform I have 3 elements that can be filled: A, B or C. Only one of them will be filled at a time. Is it possible to fill the bundle field of an entity with the value from one of these webform ...
BMM's user avatar
  • 103
0 votes
0 answers
46 views

How can I get the email addresses from a webform submission list and use them in a rule to send an email out when new content is published?

My website has a webform that people can fill out to keep up with the site, I want to be able to send an email to everyone on that list when new content of certain types is published. I was planning ...
Eluchel's user avatar
  • 387
0 votes
0 answers
17 views

Results Tab of my Webform error: The website encountered an unexpected error. Please try again later

Clicking on the results tab: The website encountered an unexpected error. Please try again later. Log message shows this error: TypeError: Unsupported operand types: string + string in _TwigTemplate......
user111780's user avatar
0 votes
0 answers
32 views

Can you have multiple Webform handlers trigger on sumisstion?

I have a need to run some preprocessing on data using a custom Webform handler before I want the data to be handled by the CiviCRM handler. Is there a reason both handlers won't run one after the ...
Nick Perkins's user avatar
0 votes
1 answer
44 views

How to customize webform item formats, for the preview page?

I'm trying to disable all links targeting entities (taxonomy terms for instance) when previewing a webform, just before submitting it. When building webforms, I know it's possible to customize how ...
PAC's user avatar
  • 1
0 votes
0 answers
112 views

Computed Twig on Date/ Time with Conditions results in php error

I was referred here from the Webform Issue queue Problem/Motivation Calculating the time difference using the Date/ Time elements with any conditions applied to the Computed Twig element results in ...
spivey76's user avatar
0 votes
0 answers
11 views

Received Webform email does not show the @ symbol

When we receive webform submissions emails, the email element is not allowing the @ symbol to pull through. The email are displayed with the word at instead of @. Example - steve [at] google.com. ...
K CON's user avatar
  • 1
0 votes
0 answers
41 views

How can I allow anonymous users to see a webform, but not submit it?

My question title sort of summarizes the issue, I'd like anonymous users to be able to see a webform on a node, but not have access to submit it without logging in. I can't find a straightforward ...
Steve's user avatar
  • 351
0 votes
0 answers
51 views

Custom CSS/JS combined to webform custom component gives type MIME error

I've made a custom Webform component, working well so far. A javascript library is attached to this component. $elements['#attached']['library'][] = 'my_module/my_lib'; My client tried to add custom ...
mt.i.1's user avatar
  • 63
0 votes
0 answers
11 views

Display predefined set of qestions in webform

I have requirement where customer wants to create a pool of questions/elements in webform and then create few sets of questions. Then randomly select one set of questions and display to user. I couldn'...
Sharique's user avatar
  • 207
0 votes
1 answer
35 views

How can I export all webform structures?

How can I export forms generated from a Drupal 7 site using webform? The data is meant to be used to recreate a form generator tool by another team (who is not necessarily using Drupal).
Matoeil's user avatar
  • 3,425
0 votes
0 answers
103 views

Conditional dropdown select menu

I'm using the Webforms module for Drupal 10 and I am trying to create a form with 2 select boxes related to 2 content types: Content type: "Country" Content type: "City" I'd like ...
BMM's user avatar
  • 103
0 votes
1 answer
33 views

What permission controls access to "webform_html_editor" input type?

I'm a Drupal site owner, and my admins cannot access any webform_html_editor elements. The administrators have full access to all wysiwyg inputs, but there is no permission obvious to me that controls ...
aaronbauman's user avatar
0 votes
1 answer
61 views

Change View webform link edit to edit/all

I am currently using drupal 10 and I created a page using View (acquiring webform with pages). In View I add link edit webform. When I click edit, it can open the submission as expected. However since ...
Waluyo Adi Siswanto's user avatar
0 votes
0 answers
56 views

setElementData() on link element

How do I call setElementData() on a link element? The following code doesn't work. $submission->setElementData('link_element', ['title' => 'string', 'url' => 'string']); I get this error ...
esod's user avatar
  • 319
0 votes
1 answer
24 views

How to configure a multistep webform with custom alias to use GET instead of POST

I have a multi step webform, which I'm using as a kind of configurator. I want to allow people to share the link, so they can land on the last page of teh form with all the other values already set. I ...
Andreas's user avatar
  • 412
0 votes
0 answers
87 views

How do I get form elements with multiple values to display only one/single field with the add more button?

I expect what I'm asking is supposed to be the default behavior of form elements where users can input multiple values, however when I have a form element that has 3 or more allowed input values, a ...
flamesquirrel's user avatar

1
2 3 4 5
53