Hello I will like suggest this useful feature for webform module:

Remember fields between forms tracking referred url based %get[key]

Example using multiple forms in a site for anonymous and registered users:

1.A user use this type url to income my site myurl/myform?referrer_id=john (this autocomplete the referrer_id field)

2. This user left this form page and browse the website, nodes, polls, whatever ?referrer_id=john its lost (actually).

3. The same user visit another form of my site, by example I got 5 forms with same referrer_id field by example.

4. Webform need to check referral url at 1er step and autocomplete referrer_id field; this action also overwrite the url from myform to myform?referrer_id=john

This is a useful methode to autocomplete fields and track referral user to use how a simply affiliate system like affiliate module or referral.

I hope anybody can to help me. Thank you.

Comments

quicksketch’s picture

Category: feature » support
Priority: Major » Normal
Status: Active » Closed (fixed)

If you're able to somehow set the referrer_id into a cookie (you'd need to do this in your own module), then you could use %cookie[referrer_id] in your form to track the referrer. You'll probably need Webform 3.16 for this functionality if you want to support anonymous users, due to the requirement of #630476: Allow hidden fields to handle unsafe tokens by making the "value" type fields.

That said, the part that is missing is storing the cookie in a custom module, which is beyond the help I provide in the Webform queue. Since this issue is so old, I'm closing it directly.