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

Using webform-form-[nid].tpl.php to change default template

On drupal 7, using webform 7.x-4.11, I am trying to modify the template of a specific webform. So, in /web/themes/bartik/templates (I am using bartik theme) I created a file named webform-form-23.tpl....
-2
votes
0answers
10 views

How to style the webform submission pdf

I want to style the webform submission pdf files. I want to add a logo and a footer, also I would like to change the font. But I have no idea how to do this, so I need help for this issue.
0
votes
1answer
11 views

Pass a webform value to a node via Rules?

I have a rule that is successfully creating a node of a content type when a webform is submitted. How do I pass a value from the webform into the created node via rules? (This is a Drupal 7 site.)
0
votes
0answers
9 views

will webform work with views bulk operations?

Given a webform that submits emails sometimes the destination mailbox might not be available. As far as drupal is concerned the submission was successful. I can resubmit individual submissions. I need ...
0
votes
1answer
392 views

How to put select option value into particular category in webform module?

I am using webform module and added a select field. My option values are One|Sample 1 Two|Sample 2 Three|Sample 3 Four|Sample 4 Five|Sample 5 Six|Sample 6 But I want these three fields ...
1
vote
0answers
24 views

How can I have the file upload destination private by default?

Currently Webform file component uses public files as default upload destination. This is probably because private files path is not always available if not configured in Drupal settings correctly. ...
0
votes
1answer
19 views

Error trying to submit webform programatically multiple times: Duplicate entry for key 'PRIMARY'

I'm trying to programatically send submissions to a webform n times, but when I submit the submission info to the webform for the second time, I get an Integrity constraint violation: 1062 Duplicate ...
2
votes
3answers
2k views

How to block Webform spam based on keyword strings?

Short Version: I would like to block Webform submissions that contain strings e.g. mail.ru in the webform textarea field. Recently I am seeing a lot of fake webform submissions. I am already using ...
-1
votes
1answer
434 views

How can I raise the maximum upload file size?

I set up private file directory at /var/www/private to keep upload files from webform and setup permission on directory and files (664 for files, 775 for directories). When I click on upload button ...
1
vote
1answer
507 views

How to pass Webform elements from controller to custom twig template

I'm pretty new to Drupal and probably this is simple but I got stuck with this. What I'm trying to do: I have created a custom module where I have defined a custom route to display my webfrom in ...
0
votes
1answer
605 views

Submission of dynamically generated input fields

I have created data entry form using Drupal 8 Webform (Yaml forms), Part of the form is table field which hosts dynamically generted textfields using jquery shown below: $(document).ready(function(){...
0
votes
1answer
48 views

Retrieve Webform submission data from database

Here's a little background on my project: I have 10 or so webforms let's call them Forms A thru J which are for different departments of a college. I also, have 1 credit card processing form let's ...
0
votes
1answer
17 views

How to override version of drupal-library (JavaScript library) included with composer merge-plugin?

I'm using Webform with the composer-merge plugin to bring in its libraries: Relevant parts of my composer.json file: "extra": { "installer-paths": { "...
0
votes
1answer
595 views

How do I get total webform submission count of multiple webforms?

I am able to get the webform submission count total for single webforms, but when I filter for multiple webforms (using the OR operator) it only shows the total count for 1 of the webforms. How can I ...
1
vote
1answer
593 views

Sending email notifications to webform submissions

I am trying to create a rule that will send an email to a list of webform submissions, notifying them when new content is created. So far, here's what I have: Event: after saving new content of type [...
-3
votes
0answers
34 views

validate cellphone number in webform by sms [closed]

I wanted to create a form to digital signature collection In this way, the visitor enters his name and surname and mobile number in the different fields of form And the mobile number is validated by ...
1
vote
1answer
343 views

How to theme webform's Custom Composite element?

Is there any chance I can move specifics sub-element to Custom Composite? Either, I couldn't find any way how to use flexbox inside in a custom composite. For example, I wish to have; [First name] ...
0
votes
1answer
390 views

Webform i18n doesn't work

We have installed and enabled: Webform 7.x-4.0-alpha6 Webform Localization 7.x-4.x-dev Internationalization 7.x-1.7 We have created several webforms (in English). When I look admin/config/regional/...
2
votes
2answers
2k views

How do I add a custom field token to a default value?

I want to add node-field data into the web from block via tokes as with Webform 7.x-4.1 this should work. But tokens from custom fields are not available in a webform(block) ? [node:title] and [...
0
votes
0answers
27 views

Ajax submission not working for same webform rendered multiple times on same page

I have a content type called "FAQ" with teaser type display views page(Around 30 contents). I have created an ajax webform and rendering the form under each teaser content to collect user's ...
-2
votes
1answer
37 views

Select a module to build an ad or job search site [closed]

Select a module to build an ad or job search site I want to create a site for job search and employment in the field of employer and contractor I can create an information submission forum with the ...
0
votes
1answer
389 views

Insert multiple checkbox value from webform into table

I created: a webform named Test Number checkboxes checkboxes named Number with values one, two and three using Form Builder a table named checkbox_check Aim: When the webform is submitted, the ...
1
vote
2answers
458 views

How to load a webform via ajax inside custom JS?

I'm trying to load a webform block via ajax. Right now I have: $.ajax({ url: '/form/contact-us', success: function (response) { console.log(response); }, error: function (...
-3
votes
0answers
31 views

Webform_Rest Elements JSON to create form Dynamically using Javascript

The response returned by webform_rest module element endpoint /webform_rest/contact/elements has # in it's keys as in the below image What are the methods or library which could help me create form ...
0
votes
0answers
34 views

Custom Submit Handler to Integrate Payment Gateway in a Webform

I would like users filling up a webform in my site to make a payment before the form is submitted. The form should be submitted if the payment is successful else an error message should be displayed. ...
0
votes
1answer
27 views

How can I style the webform submissions table?

Using Drupal 9 and Webform, I'm unable to find the twig template used to output /contact/form/submissions. Is there a place in the documentation that lists the twig templates? I see there is a View ...
3
votes
4answers
2k views

Set default radio button on webform

I have a standard contact page created using webform, which has a set of radio buttons. Is it possible to change the pre-selected radio option based on the referring page?
0
votes
1answer
393 views

Drupal 7: LDAP: How to fetch user information on a webform

0 down vote favorite I have a drupal 7 webform and I want to pull the user information of the logged in user using LDAP. This information is stored on another form of my site. and so when a user ...
1
vote
1answer
613 views

How to make select option works like a button?

I have created a contact form by using webform module, in that I have added one component as reset and the type is select options. My requirement is when I choose this reset option from that dropdown ...
0
votes
1answer
562 views

How to insert data to webform via HTTP/Drupal REST module?

I have hooked up a simple webform and now I need to insert data via HTTP/Drupal REST module ? Is is possible to insert this way, else should I insert directly to DB ?
2
votes
1answer
421 views

Displaying Webforms on Content Types in Page Manager/Panels

The Webform module allows for a webform to be attached to each Content Type of the site. I can "Enable webform functionality" on my Page and Blog Content types and don't need to use a separate "...
0
votes
0answers
16 views

Continue to show the preview page after submission, adding the confirmation message

The preview page showing submitted values (rather than the empty form) is the ideal thing to show the confirmation message (and to adapt to better summarize what was submitted, as we have already done ...
0
votes
1answer
22 views

Is it possible to load a webform that is using a specific custom handler?

I have a custom handler for one of our webforms, it may be re-used for other webforms. It integrates with a 3rd party API and sends the response back to Drupal. I have to save the submissions to ...
0
votes
1answer
33 views

Show a summary calculated from webform submitted values on the submission preview page only (not on form) and re-use in e-mail handler

We need to display a computed summary of submitted information on both the submission preview page and in e-mails that are sent out. I'd expect this is a common usecase and wanted to check if i'm ...
0
votes
2answers
401 views

How can I access webform submission values from webform-confirmation.html.twig

I have a webform with Inline confirmation, AJAX enabled and saving of submissions disabled. Is it possible to access the submitted values from the webform-confirmation.html.twig template? I know ...
0
votes
1answer
863 views

How do you get and submit a webform in React?

I am planning to build a Drupal 8 site fully decoupled using Gatsby (a site generator for React). So I will use Drupal only to structure (content types, paragraphs), enter and update all the content ...
1
vote
1answer
584 views

How to change the SID of webforms to increment from a new starting number

We launched a new website that uses webforms but need to make sure our webforms are using an SID for results larger than the last number used on the old site. Please note that I am not referring to ...
0
votes
0answers
13 views

Can i show webforms submission on a calendar view

I need to show in a calendar view the webforms submission. I have a date and a name field in my webforms, is there a way to show this in a calendar? I try the full calendar display plugin but it doesn´...
0
votes
0answers
9 views

How to display webform multiple results in a table rather than a list

On the webform page itself (data entry), it's possible to instruct a composite element that allows multiple values to "Display elements in table columns" (under Build » Advanced » Multiple ...
0
votes
2answers
26 views

How do I plot a graph or chart on the confirmation message?

How do I plot a graph on the confirmation message, on a webform and Drupal 8? I searched a lot, but did not find anything useful, but these results. There are several modules involved in graphing, ...
0
votes
2answers
1k views

How to send email to submitter in a webform?

I have a webform and i want to send by mail this webform to submitter. For the moment, i created an hidden field with token [current-user:mail] and i chose this field in adress. I think it isn't very ...
0
votes
0answers
20 views

how to protect my form by checking that 2 values are not the same?

I have a contact form created with webform module. I have already add recaptcha on my form, but I received regularly some bad contacts. To protect my form I want to check that field lastname and ...
0
votes
1answer
446 views

Trigger redirect after Webform Remote Post Handler posted successfully

I've made a webform with a handler. This handler does a Remote Post towards an API. This API is actually a custom module within the Drupal install which (after some logic) passes all of the ...
1
vote
2answers
429 views

Hide a div on webform submission using ajax

I am new to drupal i am using webform ajax module to submit my webform , its submiting values properly after validating them , but along with this i want to hide a div also on submit . what is the ...
1
vote
2answers
560 views

Hide sid in webform confirmation page

I am using webform for contact us page. Once form is successfully submitted,I have redirected it to thank you page. But the URL of thank you page keep adding webform sid, like given below http://...
0
votes
0answers
15 views

How do i get all user emails with a special flag (in example member of a Group) for a webform?

i need a Webform that send a email to group of users, which have the same interests. I use "Groups" (not organic groups, because of Drupal9) for that, so the users can decide themself to ...
0
votes
0answers
13 views

Alter #selection_settings for webform entity checkboxes element

I'm trying to alter a webform entity checkboxes element by altering arguments, which are sent to entity reference view. However, following code doesn't alter anything: function ...
0
votes
0answers
9 views

Move existing Webform textfield elements into a dropdown

I have created a Webform using Drupal 8.9.13 and Webform version 6.0.2 and I have existing textfield elements and hidden elements which I am using in a computed twig element to calculate their values. ...
1
vote
1answer
397 views

Allow groups of users to edit a single Webform

I need to enable groups of users to edit one Webform so that they can collaboratively complete a questionnaire. I am not concerned with two people editing at the same really. I've seen mentioned the ...
0
votes
0answers
22 views

Is it possible to fire a condition with JavaScript?

I have a webform with radio buttons, where I have conditionals made normally with webform conditions tab setting. Everything works nicely, I have some fields (just text fields) depending on ...

1
2 3 4 5
48