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
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 ...
6
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
945 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
918 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
476 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
805 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
471 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
587 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
539 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
595 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
984 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
336 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
742 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
212 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
331 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
727 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
538 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
747 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
459 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
311 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: ...
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
357 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
120 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
534 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
446 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
458 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.
0
votes
1answer
106 views

Automating webforms?

I am making a website for a museum that involves a questionnaire. I made this questionnaire with the webforms module, which in turn sends the answers to another page to be processed. The people at the ...
2
votes
1answer
864 views

Webform Protected Downloads

I am trying to figure out how to use this module. I've downloaded it, installed it, etc. However, when I try to set up a webform, I'm not seeing anywhere where I can upload files and redirect to a ...
1
vote
1answer
2k views

Webform - Mandatory text field depending on select option state

I was hoping to get some direction on how to make a textfield in my webfrom mandatory but only if a particular select option was not checked. So the textfield is mandatory by default but if the ...
2
votes
3answers
2k views

Get the submitted values of a multistep webform

I need to get the submitted values of a multistep webform. It looks like webform doesn't save values from earlier steps in the usual place: $form_state['values']['submitted'] or $form_state['input']['...
0
votes
1answer
1k views

How to add multiple value field in webform

I want to add a file field called picture to a webform, and Want it to be a multiple value field to allow users to upload more than a picture
2
votes
3answers
685 views

Divide a webfrom textfield component into a specific input format

I have a need to divide a webform component into a specific formatting that is to match a coupon format. The user input needs to look something like this. Then within the webfrom exported data the ...
0
votes
1answer
420 views

Webform duplicate entry on edit

Webform creates a duplicate entry on edit, instead of editing the entry, is there a way to make it work the way it should (by not creating a new entry)? Using Drupal 7 and Webform 7.x-3.17+3-dev.
0
votes
0answers
530 views

register with webform in uber cart drupal 7

Im trying to build a site with custom roles which are sold as memberships. I've created my uber cart install and tested it. The rules defined allow the User to be assigned to the desired role upon ...