Webform

OnlineWD™ - September 24, 2009 - 23:35
Project:Prepopulate
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I tried to use prepopulate with webform but couldn't manage it. I'd like to create link for image which loads prepopulated webform. No relation to CCK, straight href.

#1

jschumann - November 29, 2009 - 22:12

You want:

?edit[submitted][webform_field_name]=Happy text value here

where "webform_field_name" is the name of the field in your form. Have a look at the name and id attributes for the input element for which you're trying to supply a value, and mash them up a bit using this pattern.

#2

reglogge - December 4, 2009 - 20:21

You can also just use webform's built-in capability to prepopulate a form field from the url by setting %get[key] as the standard-value of a field and then calling the webform with /webform-url?key=value. No need for the prepopulate module then.

 
 

Drupal is a registered trademark of Dries Buytaert.