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
1
vote
0answers
16 views

How to add custom webform email handler if submission is sticky/flagged

I use the bulk operation "Star/Flag selected submission" within webform views to process webform submissions which works nice. I would like to be able to send an email to the author if a submission ...
-4
votes
0answers
13 views

How to call a jquery function after a webform is successfully submitted via Ajax [on hold]

I have very little knowledge about drupal behaviours I need to call a jquery function after the webform is successfully submitted via ajax.
0
votes
1answer
15 views

Load Media File in Webform Mail Handler

I want to use a single webform to send download links with specific media files to visitors that fill out that form. For example on an URL like this: https://example.com/downloads?media=1234 The ...
0
votes
1answer
22 views

Where to put #Ajax Callback in webform twig file

I would like to add the Ajax callback settings to my custom composite webform element in the twig file. Is this possible? The callback function is in my custom module. This is NOT a computed twig ...
-3
votes
0answers
25 views

How do I implement this functionality? [on hold]

I need the feature provided by drupal module https://www.drupal.org/project/commerce_webform. Unfortunately it isn't yet ported to Drupal 8 and I am not that much capable to do that. We have commerce ...
-5
votes
0answers
30 views

drupal 8 down after module update [closed]

I updated modules in drupal 8 after that I received this error The website encountered an unexpected error. Please try again later. ArgumentCountError: Too few arguments to function Drupal\webform\...
-2
votes
0answers
30 views

Select options to send to different email address [closed]

How can I have multiple options on my webform that send to different email address once an options is selected - this is for drupal8
1
vote
1answer
30 views

How do I remove the text “webform content” at the top of a block?

I have several Drupal 8 webforms, some of which are embedded as blocks. At the top of each webform, I'm getting the "webform content" text. How do I safely remove that text?
0
votes
1answer
29 views

Set a Document File in a webform submission programmatically

I have writen a PHP class that saves a pdf file programmatically. The class contains a function that returns the Drupal path private://documentA.pdf I would like to attach the file to a webform ...
0
votes
0answers
26 views

What token should I try to get only the term name independently from the default display set for the vocabulary?

Basically, on my webform, I have a multi-value term reference field for terms in the skills vocabulary. The webform field machine name is framework_skills. Owing to the fact that I have set up (and ...
0
votes
1answer
49 views

Pass field value of original node in webform

I'm using Drupal 8.7.8 and Webform 5.4.0. I have multiple section nodes that are displayed on course nodes. These are 2 different content types. I'm adding webforms to sections, via the twig file ...
0
votes
0answers
22 views

Webform Multi-step validation

I have a multi-step/page webform. It works fine. I have on one page two date fields. One field must be on or after the other and thus I want some validation. No problem I followed the tutorial ( How ...
-1
votes
0answers
37 views

Unable to get submitted input value into international format using intl-tel-input and webform [closed]

As mentioned in the documentation here : https://github.com/jackocnr/intl-tel-input I can display and also get a submitted value with an international format using the option "separateDialCode". ...
0
votes
1answer
37 views

Hide certain field on form alter using AJAX

I have a webform created using interface, and need to hide some fields through button. Using form_alter I have added that button added AJAX call with it. Now I want to remove/hide certain element ...
0
votes
1answer
22 views

Where are the webform files in the D8 directory?

I'm trying to manually update the D8 webform module but cannot find any directory, folder, or file named webform. Where are the webform module files located?
-1
votes
0answers
11 views

Select and embed a webform submission inside a node

I would like to be able to embed specific webform submissions into a node. We have a webform that collects student job openings from each office at our college. I would like to be able to add those ...
0
votes
0answers
6 views

how to display field in Hook_preprocess for the template file

I am trying to display following field to the tpl.php file. However, I do not know how to display this field. $form['ExStart'] = array( '#type' => 'value', '#value' => $overallstart, )...
0
votes
0answers
19 views

Populate hidden field with unique value based on earlier textfield/checkbox selection

In Drupal 7 I am able to populate a hidden field with a value using Conditionals. E.g. If TEXTFIELD contains LETTERS then HIDDEN FIELD is set to FILL WITH SOME TEXT or If one CHECKBOX from a group ...
0
votes
0answers
7 views

I have an webform and would like to display results with Webform Views Integration

Therefore I would like to filter the forms by the webform category, to show only the needed webforms. But in the view with exposed filter the category is not shown. and I can't select one. I Run ...
-1
votes
0answers
14 views

Using the Webforms module, is there a way to establish workflow?

I am using Drupal 7. Using the Webform module, is there a way to incorporate role-based workflow? For example, an authenticated user can fill out the first half of the form, then a user with Manager ...
0
votes
0answers
16 views

dropdown multiple values

I am trying to display multiple values of drop down and store it to the database. How could I do that? Any help would be appreciated. $form['options'] = array( '#type' => 'value', '#...
0
votes
0answers
14 views

Using Payment with Webform and without Commerce?

Has anyone had any luck integrating Webform with the Payment module but without Commerce? I'm considering attempting to refactor Commerce Webform Order so that Commerce integration isn't needed ... ...
0
votes
0answers
24 views

How to display Block content only to users that have submitted a specific webform

Background: Our Drupal website has different user types, lets say A, B, C, D, and E. We have private content that should only be accessed by A, B and C once they agree to the privacy terms, which are ...
-2
votes
0answers
22 views

Dev Desktop Webform Module Install [closed]

I'm new to Drupal and am trying to load the new module Webform from the Drupal site. I did exactly what I did for all other Module installs and with webform I get this error webform-7.x-4.20.zip ...
-1
votes
0answers
16 views

How to use custom submit handler in webforms

I'm trying to use a new submit action button on my webform and give custom handler functions to it, how to do it using hook_alter ..?
-1
votes
0answers
15 views

Remove webform results tab from node

I do not understand why, but my code does not work. What can be wrong? function module_menu_alter(&$item) { $item[node/$node/webform/results/submissions']['access callback'] = FALSE; }
0
votes
2answers
84 views

Node and Webform - Open, Close, Scheduled and Limit per source entity

I use Drupal 8 with webform. I have a content type called "Event" which has several fields of simple type and reference type for other content types. In addition it has a field entity reference that ...
0
votes
0answers
14 views

Webform conditional relationship

I am preaty new on drupal however my issue still remain unsolved since start on drupal. I can easly assign a webform for a content and forms submiting according node information. But I have many ...
0
votes
0answers
14 views

Webform entity checkbox reference settings on view doesn't work

Version: Drupal 8.x-7.8 Module: Webform 8.x-5.4 Context: I try to modify the display of an entity checkbox reference field. In that purpuse, I've created a view entity reference. Then, in my ...
-2
votes
0answers
8 views

Webform submission error: form ID not connected

After submitting a webform, Drupal adds to my .webform-confirmation div this line: <script>form ID not connected: 1532</script>. I also have an error in browser console: Uncaught ...
0
votes
1answer
39 views

How to add custom confirmation page template for a custom URL for Webform (Custom URL for confirmation page) Drupal 8

I want to show custom message on confirmation page (on custom URL). I created a custom URL in *.routing.yml file and added a method in controller class that returns an array : return [ '#theme' =&...
-1
votes
0answers
21 views

How to write Javascript in a webform?

How to use JS for web forms, to perform logic based on the input given by the user and display the result on another field using ajax?
0
votes
0answers
12 views

error unsaved elements after saving in webform builder [closed]

I am trying to build a webform and it works well to a certain point. Then as I am trying to add elements and rearrange the order of them and then save, I get a message that I have unsaved elements. ...
-1
votes
0answers
20 views

Calculate number of days between two date fields in Webform

I am using Drupal 8.7.6 + Webforms 8.x-5.4 I have two date fields in a webform and would like to calculate the number of days between them using Computed twig Please help
0
votes
1answer
71 views

Redirect to referring page after form submission

Trying to figure out how to redirect a user back to referring page after they have completed our feedback form. So a scenario would be if im on page foo/bar and I click on feedback webform link on ...
0
votes
0answers
19 views

Webform block not display

In D8, In Block Layout, Place Block of webform of webform form, but when we see output display empty. Inspect element display span tag data-big-pipe-placeholder-id="callback=Drupal%5Cblock%...
0
votes
0answers
32 views

webform conditionals for checkboxes

I'm trying to make a webform for an email sign up. The organisation has four different newsletter options, in multiple languages. I have each of the newsletters group in a set of checkboxes. What I ...
0
votes
0answers
29 views

Webform address field order

I have a Webform with address field and other fields as well. Is there a way to alter the order of address field form elements within other fields? If so how can this be done?
0
votes
0answers
13 views

Using “Webform Select Image” ! Where do i find the options value key?

I need to do Views filtering based on a "webform submission value" using "Webform Select Image" ! Where do i find the options value key ?
0
votes
2answers
41 views

Drupal 8 : failed to create webform programmatically in hook_entity_insert

I need to create a webform programmatically when a node is created. I refer and follow https://www.drupal.org/project/webform/issues/3038697 here are the steps to reproduce: create new module via ...
0
votes
0answers
32 views

How can I programmatically alter the item element markup?

I want to change the item element markup value with some processed text.which hook need to edit the html markup element. currently i found that there is no way to edit the markup element because it is ...
0
votes
0answers
31 views

Webform [submission:values]: field name and value inverted

Recently, [submission:values] inverts my field name and the value like this: TestName Name 0600000000 Phone number Do you know how to display correctly my submission with [submission:values] ? To ...
0
votes
0answers
25 views

Webform submission does not include all fields in email message

We have a webform with two sections. The first section requests information about the user submitting the form. The second section requests information about what the user is looking for. We have ...
0
votes
1answer
50 views

How is $form['#action'] encoded?

I have the following set up: Webform "my_webform" Entity type "activity" The "activity" entity type includes a webform reference field Activity ID 14 has some content and a reference to "my_webform" ...
0
votes
0answers
33 views

How to add custom header and footer to Webform Entity Print PDF

I have a Drupal 8 site and installed the Entity Print module, as well as Webform entity print. I want to print a Webform submission in a PDF but i cannot seem to understand how to create custom header ...
-2
votes
1answer
59 views

Error when trying to access Webform settings

When I try to go to the Structure > Webforms > Settings and Webforms I am getting the following error. I tried the $ drush webform-repair command, but that doesn't work. My Drupal version is 8.6.4. ...
0
votes
0answers
10 views

Webform show custom composite result at their own line in submissions download

I have a webform with a custom composite field THE custom composite has one text field that can be repeated an unlimited amount of times here is an image of the form: What I want is to show each ...
0
votes
0answers
30 views

How to change background colour of webform?

I'm finishing a website that someone else started and there are a few things I can't figure out. It's a Drupal 8 installation and I have administrator permissions, but I've tried every setting I can ...
0
votes
0answers
14 views

How to allow access to Webform Submission Grid results to Role

Giving admin privileges to sales dept seems bad. The Webform Customized submissions is super! However I am unable to create a link for my Sales manager to view the same data without giving admin ...
0
votes
0answers
16 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 ...