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

Can't get values from $form in submit handler?

Using Drupal 7 and a custom form generated with the Webform module, I'm trying to get info from the submitted form to save in additional SQL tables. I know my submit handler is being called because ...
1
vote
1answer
476 views

Change image extension on submission

I am using D7.12 with webform 3.18. I want to change the image extension from png to jpg of the image uploaded through the form before saving it to database. I tried mytheme_webform_submission_presave(...
2
votes
1answer
3k views

Remove drupal message “field is required” from webform validation

So when a webform is validated it sends a drupal message "X field is required", and creates a red border around the field. For our project the red border is enough, how would I go about removing ...
1
vote
1answer
2k views

Add HTML5 required attribute to webform fields set as required

Could someone advise me how to use a hook to add the HTML 5 required attribute to all inputs that have been selected as 'required' within webforms. Webforms already adds class 'required' but the HTML ...
4
votes
4answers
14k views

Programmatically get webform submitted field values

How can i print/echo the submitted value of specific field in from a webform? I need to do this in the webform 2 PDF module so i can better customize the output of generated PDFs. Im fairly new to ...
2
votes
3answers
1k views

Load existing form and use hook_form_alter to create a custom submit handler?

I have an existing webform in admin and I want to now render that form on other pages. I have a template page node--download_resource_protected.tpl that prints a hidden CSS pop-up box onto pages that ...
1
vote
1answer
857 views

How can I get webform file upload to display a thumbnail instead of a link?

I have a webform with a file field. When I upload the file I want to return a thumbnail of the file. Is this possible? If so how can I achieve this?
1
vote
1answer
393 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
1answer
418 views

Customizing a drupal webform for Drupal 6

I am working on a system that would require users to register online by filling out a membership application form. There used to be a PDF form that used to be filled out and sent for processing. The ...
7
votes
5answers
4k views

Content Type vs Webform vs Form API vs Custom Form vs? [closed]

I'm currently working on a new Drupal 7 site, which will be used as a data collection and reporting site. After much research / trial and error / etc, I've decided to bring this question to this forum,...
0
votes
1answer
2k views

Webform custom validation red highlight

How can I add the red error border to a webform component programmatically? I am doing so custom form validation when the form submits and I need to set the red border on under rules very specific to ...
1
vote
1answer
957 views

Use Webform Results in another webform content type

I am creating a website for my department at work using Drupal 7. I have a webform designed in a page named Registration in the website. When a user fills this form in and submits, it sends a ...
1
vote
1answer
931 views

Confusion as to the meaning of `cid` in webform.module

I'm working on a custom module that will return a single question at a time from an existing webform. For example, from the path mymodule/(webform_nid)/(question). This is my first encounter with cid....
1
vote
3answers
512 views

Prevent hook_form_alter to works only on frontend not in admin?

I have used a hook_form_alter to alter a form fields value randomly and its working fine, but the problem is that when i open this webform in admin panel its just change the value which i dont. Its ...
1
vote
2answers
809 views

Retrieving users from Database on to forms

I have a webform with a select option type field. I need an authenticated user to view other available users in the website in this list. So, it needs to be dynamic by communicating with the database. ...
2
votes
2answers
478 views

How to redirect to a different URL based on node content while loading a node

I have a site that uses the webforms module to gather user information. On the front page there is a list of previous submissions. Each of which has a link to view the submission (generated by Views ...
2
votes
1answer
2k views

Alter all Webform's form with hook_form_BASE_FORM_ID_alter

What is the base form_id for Webform's forms to use in hook_form_BASE_FORM_ID_alter()? My website will have lots of Webforms and I'm looking the proper way to alter this huge amount of forms.
4
votes
2answers
1k views

Problem with date_timezone_set() [closed]

I've managed to get my webform fields to display in views via this tutorial. The tutorial uses the Webform My SQL views and data modules. Webmform My SQL views: 7.x -1.0 Data: 7.x-1.0 alpha System: ...
2
votes
1answer
588 views

Problem in Indexing webform result

I have created full text search in webforms using Search Api and its working fine earlier but when i added some new records, the new records are not indexed and not able to displayed them on view. I ...
1
vote
1answer
560 views

Download all files from webform [closed]

I need to download a zip with all attached files from a webform. Is it possible?
1
vote
1answer
602 views

Tokens for Webform Component

Is there a way to set up a Webform such that I can turn component field submissions into tokens for use in the submission email? For example, I want to include "Message from [email address]" in the ...
0
votes
2answers
1k views

Auto increamented field in webforms

I need to create a auto generated number in web forms. I have used serial module for this but its working on webform in content. Please help me how i can do this.
3
votes
1answer
338 views

Add a node as a select list in Webforms Drupal 6?

I want to make a Webform in Drupal 6 where I can put a <select> list where the lists are a node. I already created a content type which is events and these events expires. So what I want is when ...
2
votes
1answer
2k views

How do I make the select options have a textfield beside them instead of a box?

I created a webform that uses dynamic select options generated from a specific content type, which represent objects. I would like to have a text field beside each one to in which the user can input ...
1
vote
0answers
94 views

Create components of webform including an email component by default when a node is created

I want to create webform components by default when node is created, all component labels/options of dropdown components/email id for email component are derived from the $node variable on save. is ...
0
votes
1answer
753 views

Relation between field of two webform

I have created two webform as Vendor and Sponsors.There is two sponsorship type as gold and platinum in sponsors and each vendor is sponsors. Now i want to show in Vendor view the type of sponsorship ...
0
votes
0answers
146 views

Drupal 6 Webform - Component rendered in wrong position

I'm adding a new component to a Drupal 6 webform. New 'select options' components are all rendered in the same area, no matter which position they are given in the backend. I've just added 'Area of ...
0
votes
1answer
1k views

Webform email component created programmatically

I am trying to build an email confirmation utility into a web application. For some other project I might just use jQuery to insert a new text field beneath my email field and compare their input as ...
0
votes
1answer
216 views

Why is #field_parents empty in nested, multi-step form?

I'm using Webform, Fieldgroup and Multistep with D7. Ultimately I'd like to create a hierarchically-grouped list of all the submitted values and display on the last step of the multi-step form, with ...
2
votes
3answers
332 views

I've created a Webform. Whats next?

I am completely new to Drupal. And I would really appreciate if someone could help me out here. I used the "WebForm" module, and created a form. The data went into the database perfectly fine, as it ...
2
votes
0answers
728 views

Trying to send an attachment with a webform

Trying to send an attachment with a webform, but it isn't working. I have MIME Mail installed, I have webform, I have attached a file to the node, and I have selected under the webform settings "...
1
vote
0answers
539 views

Error in webform submit

I just created a web form containing questions and answers for my website; when I click on the "Submit" button, the following error appears: The requested page "/node/12/done?sid=20" could not be ...
0
votes
3answers
84 views

Reset Webform's SQL table indices?

I'm using webforms to get some data from users. These results are later used in another php script, and this relies on looping through the data: for ($i = 1; $i <= count($data); $i++) { ...
1
vote
3answers
4k views

Accessing Webform 4 Submitted data

I have a webform on my site and on user submission, I want to send the webform data to some php application that get the value of some variables from the URL. This task requires me to access the ...
3
votes
1answer
756 views

How to migrate Webform data from Drupal 6 to Drupal 7?

I have a Drupal 7 installation with the Webform module enabled. I recreated a Drupal 6 webform and now want to migrate data from the Drupal 6 installation to the Drupal 7 installation. Is this ...
4
votes
3answers
5k views

create drupal 7 webform programmatically?

I have already created a webform and I need to fill it programatically. how can I create webform ? Can i create it like node creation: $node = new stdClass() $node->type = 'webform' $node->...
1
vote
1answer
467 views

preprocess_node_webform is not working

I wanted the error messages from the webform to be customised. So I wrote following piece of code in template.php of my theme. function sandesh_preprocess_node_webform(&$vars, $hook) { if ($...
0
votes
1answer
314 views

Disclaimer screen when adding new content

I'm looking for a way to have a disclaimer page/popup be a part of creating a certain type of content, in this case a OG group. Is this something that could somehow be done with Webforms? I found ...
3
votes
1answer
3k views

How to change error message of the webform [duplicate]

Possible Duplicate: preprocess_node_webform is not working How can I change the default error message of the webform ? For example "The name field is required" to "Please enter your name". ...
0
votes
0answers
67 views

submit all webform answers

I'm creating a drupal website that will be maintained by others. To make it as simple as possible for them, I would like to automate as much as possible. Part of this is allowing them to add new ...
2
votes
1answer
1k views

How to set a $_POST var value as default value for a textfield webform component?

I need to set a $_POST variable value as the default value for a textfield webform component using Webform 4 In the Default Value field I filled with %post[my$_PostVar] but is not working. update: it ...
0
votes
0answers
2k views

How can I use PHP code in a webform field?

I have to store location information of users, so I have installed the smart IP module, which provides users country information using user's IP. by using this module, I have to use PHP code into some ...
2
votes
0answers
379 views

Full text search in webform

I have created a form using webform and used in views to display filled entries. Now I want to make full text search which can search data from available data in webforms. I have tried to index ...
0
votes
1answer
3k views

Webform Component with multiple fields

I would like to make a custom module that integrates with webform (7.4). I need to have a combo field which could be added to a form as one field but consists of 4 text areas. I have found a ...
1
vote
1answer
163 views

How would you implement function rich forms to your module

I'm having a hard time deciding on how to develop the following functionality in my upcoming module: I'm developing a module which should eventually be able to create "event" type nodes. Which extend ...
1
vote
3answers
121 views

Webform on 'hostile development' environment

A client has a 'hostile development environment' and, related to this, a list of 'blessed modules'. One of the hard/fast rules is 'no Webform' module. (The only answer given to 'Why?' so far is, "If ...
1
vote
1answer
535 views

Create email everytime a webform is sent off (in custom module)

I'm trying to write some code that sends off an email every time a webform is submitted/edited. I tried using hook_webform_component_presave() figuring I could just stick some mail code in this ...
0
votes
1answer
453 views

getting response back from a Java Servlet to Drupal

My working scenario is like this, A webform (suppose an admission form for school) should be there on my drupal site and when a user clicks "submit" button a nicely formatted pdf file should be ...
0
votes
1answer
460 views

How to get URL value in drupal?

My URL is something like this http://xyz.com/content/show-cat?catid=2 . Now i want the value of catid (i.e 2) and save it in a variable. I wrote php code like $store=$_Get['catid']; But this format ...
1
vote
0answers
176 views

How to set webform value in action while creating rules

I want to set the web form fields value ones certain condition satisfy. Please let me know how i can do this.

1
39 40
41
42 43
46