Is there a way to populate a hidden field with a value from a cookie? An affiliate ID for example.

Comments

quicksketch’s picture

There isn't an easy way to do this, but it can be done with the additional submit PHP code under the advanced options.

Auspire’s picture

How?

Auspire’s picture

Does 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.

Auspire’s picture

Thank you very much antgiant for the patch found at:

http://drupal.org/node/152226

This solves my COOKIE problem at least!

quicksketch’s picture

Status: Active » Closed (fixed)

The patch in http://drupal.org/node/152226 has been applied and is now a part of webform.