336 questions
1
vote
2
answers
755
views
File upload element is not listing in Drupal 10 Webform
i am creating a form in Drupal 10 using Webform. i am able add elements like "Textfield", "TextArea" etc. When i try to add "File upload", nothing is listing. Please find ...
-1
votes
1
answer
204
views
How can I protect my Drupal Webform website from spam?
I'm using the Captcha module in the forms, but the client informed me that I'm receiving a lot of spam in the contact form submissions. How can I reduce this? And how can I test this locally before ...
1
vote
1
answer
123
views
How to get the value of a field by the field type
I have a webform handler and I need to get all the file Ids of field type #webform_document_file. There are multiple of these fields with different field names but same type, would like to optimize ...
0
votes
1
answer
290
views
Telephone element is not adding the country code on load
Hello im using Drupal9 and webforms. Our forms should support international phone numbers, the country selection list is visible but on load is not adding the country code so the users are getting ...
-1
votes
2
answers
406
views
Twig print values and strings in set statements
This twig template is not DRY.
{% set reviewer_0 = webform_token('[webform_submission:values:reviewer:0:entity:mail:clear]', webform_submission, [], options) %}
{% set reviewer_1 = webform_token('[...
0
votes
0
answers
375
views
Is there a faster way to create conditional email handlers with Drupal 8 than adding emails one by one?
I'm creating a Drupal 8 webform that will collect issues submitted by users. The users belong to different institutions, and I'd like to send the submission to the appropriate institutional contact (...
0
votes
0
answers
1k
views
Drupal 9 Webforms - Attach/Trigger Remote Post Webform Handler on Programmatic Webform Submission Update (CRON)
I have been digging around for about a week trying to figure this out and still have not come across anything that works or is even close.
The idea is that I have a custom webform. This webform has an ...
0
votes
1
answer
113
views
Drupal hook is not applied to the website
I am writing a custom hook in my request related webform which grants access of a radios field (approve, reject, forward to) to the email address that is entered in an email field (by requestor).
the ...
0
votes
1
answer
2k
views
how to remove "This question is for testing whether or not you are a human visitor and to prevent automated spam submissions" of captcha
""This question is for testing whether or not you are a human visitor and to prevent automated spam submissions""
Hi, Im looking for a way to remove this text from captcha section ...
0
votes
0
answers
145
views
Print the table based on the selected option of a radio element
I have a radio element with three options (Normal, Time Sensitive, and Hold For Pick-Up). Every time an user clicks an option, an unique table element for the option (for user to fill information) ...
0
votes
1
answer
634
views
Pre-populate Fields in webform Drupal 9
Is it possible to pre-populate a drupal9 webform with values from the database?
I have two webforms. Customers and Service Report. The customer information will be filled in from the office and the ...
0
votes
1
answer
599
views
How do you adjust the width of a custom composite's element? (Drupal 9 webform)
A webform I am customizing has 9 elements in a composite. Since there are too many of them, the composite is exceeding the fieldset you will see below.
This is the picture of the composite
I would ...
1
vote
0
answers
389
views
Access to fetch at 'http://localhost/drupal/webform_rest/submit?_format=json' from origin 'http://localhost:8000' has been blocked by CORS policy
I am setting up a real estate site with react-gatsby as front end and drupal 9 as backend.
I have contact us form in gatsby website, I want send the details to drupal webform REST to save the user's ...
0
votes
1
answer
1k
views
Drupal Webform REST
I am trying to use Drupal Webform REST.
I got an error "The 'restful post webform_rest_submit' permission is required." on browser console. I have enabled modules and REST resources as ...
0
votes
0
answers
622
views
Why is the email handler in Drupal 9 webform not rendering the CSS in its body?
I am trying to include the submitted data in the email body and email users every time an user submits a form. I am using the same html and css code for both email body and PDF attachment. The CSS ...
0
votes
0
answers
59
views
Drupal 9 CiviCRM not able to enable in windows
In Drupal 9 when we try to able the CiviCRM we are getting the above error.
We have tried with the below commands but this doesn't helped us
attrib -r F:\wamp64\www\cidd\sites\default
0
votes
0
answers
74
views
Why is my email body not printing submitted data into a table?
I am trying to print the submission data to PDF and email body of email handler when I submit. I am literally using the the twig code for both. The submission is successfully printed in PDF field as I ...
0
votes
1
answer
381
views
How to remove the webform's title and submission # in PDF?
I am using twig to display all the submitted data of a form in PDF Attachment field. After writing the twig code,
the form's title and the submission ID would not go away and mess up the template, ...
0
votes
1
answer
195
views
Drupal Webform HTML Email fine on Dev box, Text when deployed to server
Using Drupal 9.2.7 and Webform 6.1.2, I got the webform and html email working well on my dev machine. I am running WSL2 on Windows, and using Mailhog to validate the emails without an SMTP server. ...
1
vote
0
answers
464
views
How to get remote post handler returned response at module file?
I want to get remote post handler returned response inside hook_webform_handler_invoke_post_save_alter.
Please help me.
function hook_webform_handler_invoke_post_save_alter(\Drupal\webform\Plugin\...
1
vote
1
answer
629
views
Can one of the fields in a Drupal webform be Wysiwyg HTML field?
I want to have a field in a Drupal Webform where users can input some formatted HTML (tables, headers, etc.) Is there a way to do that?
0
votes
1
answer
932
views
How can I alter the webform based on it's parent paragraph type?
The target for me is a custom paragraph type that I made which allows you to embed a webform in it. I need to update the submit callback for only those forms which are added in this paragraph type.
I ...
0
votes
1
answer
658
views
Drupal 8 Webform add prefix to uploaded file names
I have a webform with a file upload field. I need do one of two things. Either upload files into a subfolder inside the private area, OR, add a prefix to the filename that the user is uploading. ...
0
votes
1
answer
176
views
Drupal 7 webform: How to change label of the field that was created by "Webform Dragndrop" module?
I am using the "Webform Dragndrop" module to add a drag-drop field to my webform. I need to change the label as follow:
enter image description here
I have tried form alter hook, but the ...
0
votes
0
answers
272
views
Drupal WebForm - Access denied after submitting form after Drupal Update:
We’re running on Drupal 7.73 and WebForm 7.x-3.30 – for a while now since the 7.75 to 7.77 Drupal release, we’ve been unable to update Drupal successfully. As every time a user submits a form on the ...
0
votes
2
answers
466
views
REgEx Matching Leading and Trailing Whitespace
I've seen some posts on this but haven't been able to find a solution for my scenario. I've got a form that I am trying to do a check for leading and trailing spaces. The is inside a ...
0
votes
1
answer
425
views
Regarding Webform issue in Drupal 8
I'm very new in Drupal 8 development, I have created a basic webform using webform module and now i want to add custom css to make it more attractive so how can i add custom css in my webform? Any ...
0
votes
0
answers
155
views
Drupal 8 Gutenberg module is preventing edits to existing webform elements and add new ones
I have a Drupal 8.9.6 site with Gutenberg 8.x-1.11 and Webform 8.x-5.20.
When we go to edit an existing webform elements, or add a new element, we get the following error:
Error: Call to undefined ...
0
votes
1
answer
40
views
Are Drupal webforms built using HTML?
I want to know what kind of code is behind Drupal webforms. Is it all HTML with the input tag?
Other than Drupal, what is mostly used to build webforms?
0
votes
1
answer
345
views
Drupal Webform Report
I have deleted one of my content from my Drupal site of WEB form content type.
Now I need to retrieve its report.
Please guide me on how to retrieve the report or database of a deleted web form.
...
0
votes
0
answers
259
views
Webform - broken link when trying to pass values
I've got a custom module that takes the email address from a form and inserts a link in the email handler (via a token) that when clicked on goes to another webform and when submitted sends the reply ...
0
votes
0
answers
188
views
Drupal 8 webform: How can multiple users add score to the same submission (eg: exam)?
Ho can two or more users add score to a single webform submission ?. Any exist solution available ?.
I have a webform called exam contain (Name, Email and some questions, Score(1->10)). The problem ...
-1
votes
1
answer
594
views
Add custom action (rejected, waiting, accepted) to webform submissions - Drupal 8
We want to add a custom action (rejected, waiting, accepted) to manage submissions of a webform form under drupal 8.
how can we do that?
1
vote
1
answer
1k
views
number_format usage in Drupal 8 Webform
I would like to format the numbers being displayed in a "Computed Twig" element in Drupal 8 Webform. I've tried Twig's "number_format" filter, but it does not work. I have this:
{{ (data....
0
votes
1
answer
343
views
How to exclude submission values from saving?
Is there a way to exclude certain submission values from being saved to the submissions table in Drupal? I would like to send a complete set of all submission values per submission via email, but I ...
2
votes
1
answer
54
views
Send an Email based on the conditions in drupal7
I have a question reagarding Webforms in drupal7
Scenario:
I have a table in which i have different jobs with repect to locations for example if i select hyderabad locations in the dropdown than all ...
1
vote
1
answer
127
views
Problem with Webform Mail Chimp on Drupal 8.7.8
Recently we updated a website made with Drupal 8. The update was from core 8.6 to 8.7.8, at the same time all the modules were updated as well. Among those modules were Webform and Webform Mailchimp.
...
0
votes
0
answers
317
views
Show to registered user which webforms they have already submitted
I would like to set up a views block visible to registered user listing all drupal webforms (almost 10) available on my site as a "to do list".
When user submit webform it shoud be marked as "...
1
vote
4
answers
839
views
How do you get a Drupal webform in Gatsby (React)
I am planning to build a Drupal 8 site fully decoupled using Gatsby (React). So I will use Drupal only to structure (Content types, paragraphs), enter and update all the content and data and use React ...
2
votes
1
answer
4k
views
How to get submitted form data from passed token
In Drupal 8 (latest version) I have multi step webform created with webform module. After last step submitted I end up on confirmation page, which url looks like:
/node/1/webform/confirmation?token=...
0
votes
1
answer
134
views
How to create custom functionalities on submit to a webform
I am new with Drupal 8 coding and I need some guidance on how to create custom web form with your own submit functionalities that checks in the db with all field match and redirects to another page.
...
3
votes
1
answer
735
views
Can I re-order columns in exporting CSV on Drupal 8 Webform Submissions?
Currently, there is a results download feature with webform core module and we can select the columns to include in exporting CSV file.
But I couldn't figure it out how can we re-order these columns ...
0
votes
0
answers
49
views
In drupal 7 will I loose webforms if I disable then enable the webform module
If I disable the webform module in drupal 7 site I expect to not have access to the webforms themselves but is the content deleted or will I regain access when I enable the module again?
-1
votes
1
answer
1k
views
How to remove default values from inputs in Drupal 8's contact form
I'm working with Drupal8 and i must to create a webform. The thing is that my name and my adress mail are automatically put in the entries..and i don't want this. I'm searching in the settings but i ...
1
vote
1
answer
2k
views
Drupal 8 Webform: how to display text input on one page on the next page?
I am trying to develop a multistep webform in Drupal 8 using Webform 8.x-5.1. I have written a WebformHandler that extends Drupal\webform\Plugin\WebformHandlerBase and made it available to the webform....
0
votes
1
answer
217
views
Download private files in s3bucket from drupal8 webforms
I am using webforms module for career form in my drupal8 website and the resume files are uploaded to s3 bucket as private.
Is there any way to download the resume from backend(admin)?
It was able ...
0
votes
1
answer
846
views
Webform Submission Using Rest API POST method
I just created the webform and added fields.
I need to create a Webform Submission Using Rest API POST method. I just installed Rest & Rest UI modules for this.
But when I try to test my API ...
0
votes
2
answers
3k
views
Drupal webform multi step save step by step
I have created a multistep form webform drupal 8 and I want the recording done one by one, means when we click on next we go to the next step and save it from this step at the same time.
0
votes
1
answer
1k
views
Drupal 8 - How to logout the user after webform submission
I'm trying to logout a user after they submitted a webform.
I tried redirecting the user to my logout link '/user/logout' by using the webform settings under confirmation.
The confirmation type of ...
0
votes
2
answers
3k
views
how to populate dynamic content in select options in drupal web forms
I'm trying to populate dynamic content in the select options like depending upon the country it should populate Country related states. I want this thing to be done by using web forms only.
I'm Using ...