Closed (fixed)
Project:
Webform
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2007 at 11:15 UTC
Updated:
22 Jan 2008 at 06:50 UTC
Is there a way to populate a hidden field with a value from a cookie? An affiliate ID for example.
Comments
Comment #1
quicksketchThere isn't an easy way to do this, but it can be done with the additional submit PHP code under the advanced options.
Comment #2
Auspire commentedHow?
Comment #3
Auspire commentedDoes anyone know how to do this?
I find GET and SERVER variables to be pretty useless for inserting into hidden form widgets. COOKIE values and also the values returned from PHP functions such as mktime() would be very handy for inserting unique ID's.
Comment #4
Auspire commentedThank you very much antgiant for the patch found at:
http://drupal.org/node/152226
This solves my COOKIE problem at least!
Comment #5
quicksketchThe patch in http://drupal.org/node/152226 has been applied and is now a part of webform.