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

How can I read/write webforms in DB7 from an external database?

I have a staging and production environment which holds my drupal instance. When ever I launch changes from staging to production I run into the issue of losing submissions that are coming in from the ...
0
votes
0answers
10 views

Display many rows for one webform submission in views

I have a table view that some appointments (webform submissions) are displayed like this: Username| Visit Date | Time1 | Time2 | Time3 My question is can I "split" this row so that a new row to be ...
1
vote
1answer
23 views

Format for webform submission node tokens?

I have a field on my webform node which is an entity reference to a taxonomy term. I'm printing it in the webform using the token [webform_submission:node:field_sports], which prints the field output, ...
0
votes
0answers
27 views

Disable validation when previous button is pressed

I have a multistep webform with required fields. The problem is that when I press the "previous"button in order to go to the page before the validation triggers and does not allow me to change the ...
0
votes
1answer
34 views

How to save the webform data to custom table?

I designed a student registration form using webforms module. My requirement is to save data from the form to table student. How can i achieve this? Is there anyway to mention this in configuration ...
0
votes
1answer
18 views

Multi-page wizard webform that posts to external URL?

I've got a multi-page wizard webform whose results I need to post to a specific URL. I see in the webform settings that you can set a Custom POST url. However, this appears to break the muti-page ...
0
votes
0answers
40 views

How can I display a webform on a node?

I am trying to display my webform using MYTHEME.theme file but I did not get any result. I am using code below: function THEMENAME_preprocess_webform(&$vars) { $wfid = $vars["element"]["#...
0
votes
0answers
28 views

SMTP + mimemail + mail system not sending to hotmail

I have a webform which sends two emails upon submission: To the administrators of the site via webform emails To the client who submitted an email via rules using 'send html email' Everything is ...
0
votes
0answers
25 views

How can I set default key values and limit the number of options?

I have created a custom webform element for radios, however I'm not clear how to set the number of options to minimum of 4 and maximum of 4, so always 4 options. I also want to set the value of each ...
0
votes
1answer
36 views

Where is the configuration actually saved in the system?

I am new to Drupal 8. I installed the Drupal webform module. I am able to export the configuration file but unable to figure out where the configuration is actually is saved in the Drupal system.
1
vote
1answer
27 views

Webform page wizard and submission data - no reference to which page the element was on

I am creating a multi-page webform questionaire using the Page wizard. I have also created a custom handler so I can manipulate the data from the form when completed. My issue is that when using $...
0
votes
0answers
12 views

How do I correctly import name field values into a webform using a CSV file?

I have a webform set up in Drupal 7.64 website into which users can register with their details for an exam. The webform uses a name field, which provides separate fields for First Name and Last Name. ...
1
vote
1answer
24 views

Ajax webform do submit without ajax when it is loaded via ajax

I'm trying to load a node containing an ajax webform and add it to an existing div, this works fine, but when I click to next step, the form is submitted to the webform action path. Any idea? Thanks!...
0
votes
1answer
26 views

Programatically get the webform submission “sid” on submitForm

I am trying to programatically get the webform submission sid on submitting a webform but failed to get it ! On my customwebformhandler.php file i have the below: public function submitForm(array &...
-1
votes
2answers
49 views

How can I change the Webform module date picker calendar icon? [closed]

How to create a custom module? Which files should be there in the custom module? How to get the form_id and the exact location of the attribute for which the change is required?
0
votes
0answers
14 views

Contextual filters on composite webform element

I need to use contextual filtering on composite elements. Webform Views Integration has previously made webform standard/contextual filtering very easy. I'm automatically able to use composite ...
-3
votes
0answers
28 views

How to Calculate number of days between two dates in Webform using Twig [duplicate]

I am using Drupal 8.7.6 + Webforms 8.x-5.4 I am building a form to for booking Vacation (time-off or annual leave). It has a Start date field and an End date field. I want to add a Computed Twig ...
0
votes
0answers
25 views

Hide if source (computed token) field is empty

I am setting up an event registration for an existing D8 website. I have added content type Event with fields start date, end date etc. And I have a webform for event registration with computed token ...
-4
votes
0answers
22 views

Add N rows to a webform custom composite element table

I have a webform with a custom composite element that has the following fields item,quantity,po upload,order type,completion date of type text,number,file,select and date respectively. now in ...
0
votes
0answers
29 views

Running ajax callbacks on custom composite field

I am using a custom composite field("test") in drupal8 webform in a webform_form_alter() hook. Two select fields-"out_part" and "out_serial" are added to this composite field("test"). "out_serial" is ...
0
votes
1answer
33 views

How can I call custom javascript on successful webform submissions through hook_form_alter?

I have some custom js code which should be executed after successful webform's submission. JS Code : jQuery('document').ready(function(){ form_submit_telium(); }); below approaches, I already ...
-1
votes
0answers
31 views

Add N rows to a webform custom composite element present in a form with Ajax

I have a webform with a custom composite element that has the following fields item,quantity,po upload,order type,completion date of type text,number,file,select and date respectively. now in ...
0
votes
0answers
43 views

How to detect a webform when is being loaded in a dialog

Explanation: The below link will open the webform (New Ticket) in a dialog and prepopulate its fields with some data: <a href="/form/new-ticket?uid={{ field_uid }}&nid={{ field_nid }}" class="...
0
votes
1answer
25 views

Forgot to do config ignore before building webform. How to correct it and ignore the webform from the export?

Complete newbie to Drupal here. I forgot to configure my config ignore before I built a webform. I have now managed to do add webform.webform* to the config ignore but that doesn't solve my problem ...
0
votes
1answer
24 views

Is Webform using datepicker.js?

I am trying to create an alert when a date is selected that falls within 30 days of today using the following script: (function ($) { $('#edit-select-date').datepicker({ onSelect: function () {...
1
vote
1answer
20 views

Webform Select Element Optgroup / hierarchy

Hello fellow Drupal users, I have created an advanced HTML element in my webform. When the form is submitted the advanced html element reverts back to the default setting, which in this case is option ...
0
votes
0answers
25 views

POST file to webform using REST API

I am trying to upload file to webform using web services(REST). I found an example regarding how to upload file. POST request Query params: ?_format=json Headers: Content-Disposition: file; filename="...
-2
votes
1answer
23 views

Webform Group Member Composite

I need to create a Webform element that has a list of group members, each with their own checkboxes and text fields ('job description'). I figured out how to display checkable group members through a ...
0
votes
1answer
15 views

What is the ID or class for the Wizard Page name? [closed]

In Webform 8 I am using the Attachment PDF / Entity Print to send a PDF of the submission via e-mail. I am able to target the field labels, fieldset and webform-elements to add CSS but cannot find ...
0
votes
0answers
39 views

Can't install module Webform because more than 2MB

I keep getting the error that the file exceeds 2MB and that that is the maximum allowed. This is when I try to upload it. For now it only happens with the module Webform for drupal 8. Is there any ...
1
vote
1answer
36 views

Automatically Generate PDF from Webform Submission

First off, this is under Drupal 7. I'm looking to have the server save a PDF of the submitted webform when a user submits it or updates it (overwriting the old one on update). So far I've had no ...
0
votes
2answers
51 views

Webform Error Occurs During Configuration Import

Currently we are having some trouble handling webform module configuration on our various environments. When running a configuration import drupal config:import --directory=$SYNC_DIR on our dev ...
2
votes
0answers
61 views

Webform module loosing language for referenced options

First I have content type "Quiz option" which is translatable. Then I have a view that returns Entity references of that type. For language option I selected "Content language of view row" and also ...
0
votes
0answers
25 views

How to reference webform field option?

So I have webform module installed and I created a webform. Webform has an choice field (drop-down). Let's say you can select one of 3 options: "one", "two", "three". I need a way to add (editable) ...
0
votes
0answers
33 views

How to get the values of web form remote post handler?

i have created a web form handler ie. Remote post Handler. and i have gave one URL for posting the submitted data. How to access those submitted values in that particular page. How to GET ...
0
votes
1answer
31 views

Missing checkbox in Webforms settings

I ran the following command: $ composer require 'drupal/webform:5.4-beta1' Some of the components in the Extend section show updated version, while Webform (top one) still says 5.0-rc12. My ...
0
votes
0answers
44 views

Prepopulating composite webform field from data passed by POST

I need to POST a JSON to a URL with a webform on it and have the WebformHandler. This is the alterForm of my WebformHandlerBase subclass public function alterForm(array &$form, ...
0
votes
0answers
14 views

How set a custom redirect confirmation path to webform programmatically

i'm trying to set a custom URL to redirect when the process of webform submit is completed without use the confirmation settings of webform. I Actually try with this: $entity->setSettingOverride('...
0
votes
1answer
22 views

How do I get the email of the one submitting contact form in the “reply to”?

Drupal 8 site. I'm using the core Contact module for basic "Contact Us" form. How can I get the email of the person submitting the form to be in the From field? And a follow-up: How do I get the ...
-3
votes
2answers
28 views

Where can I set the default filter for webforms?

When I go to https://example.com/admin/structure/webform I would like to have the webform filtered by active ones. Where do I change that?
0
votes
0answers
16 views

Display an element based on user country

I guess this isn't a webforms specific question, but it might have been solved here before. I want to display an element based on the country that a user is from (based on GeoIP or Cloudflare / ...
0
votes
0answers
11 views

Webform default views missing “In Code”

I was looking in the error logs, and I realized that users cannot view submissions of webforms. I then realized that the webform views webform_analysis, webform_results, and webform_submissions were ...
0
votes
0answers
21 views

How to modify webform's setting by webform node's field value?

I have a integer field in the Webform Node content type, I want to modify the webform's "Limit total" setting base on the value of integer field. So I created a custom module, use hook_form_alter to ...
0
votes
0answers
10 views

Saving download settings as a template

I've just created my webform which I want to use as a template. I check the Allow this webform to be used as a template mark but upon checking the template I saw that my Results-Download settings have ...
1
vote
1answer
27 views

hook or similiar to automatically send any webform submissions to an email address, without manually adding a handler to each existing webform?

We have a Drupal 8 site running Webform 8.x-5.2. We have a special role, "Webform Editor", who is not a developer, but they are trained to create the webforms that we need for our organization. We'...
0
votes
0answers
15 views

How to attached a JS file to a Webform Custom Handler

I've written a custom Webform Handler which when the user clicks Submit, sends the data from the Webform to an external api. The handler is working perfectly but it takes a few seconds for the ...
0
votes
1answer
35 views

Webform submission ID

I have added a submit handler function in my .module file so i can execute some custom code when a form(webform) is submitted:- function mh_newsletter_form_alter(&$form, $form_state, $form_id) { ...
0
votes
0answers
7 views

Webform includes attachments only on manual resend, but not on initial form submission?

Using Webform and Mimemail to send HTML emails and uploaded files attached to emails. When submitting the form, the file is not attached to the email. The box is ticked: But if you edit the ...
0
votes
1answer
56 views

How to redirect to the webform node when it just created? [closed]

I followed the webform cookbook and created a custom module to "automatically create a Webform node when adding a Webform". Moreover, I need to redirect to the Webform Node at the same time, so I add ...
0
votes
0answers
51 views

redirect submission failing after 8.7.5 [duplicate]

We have a webform that uses a webformhandler to post the submission to our credit card processor. The webform works correctly when executed by itself, but when the form is embedded in a Secondary ...