Here is what I'm trying to accomplish:
A visitor comes to the site with 2 querystring parameters (for ad tracking). A cookie gets created with those 2 parameters. They visit a page that has Dynamic Forms on it.
If they still have the parameters on the URL, those values get passed to hidden fields on the form.
OR
If they have no parameters on the URL, then the values from the cookie get filled into the hidden fields on the form (if one exists).
OR
If no cookie exists and no parameters exist, then keep hidden fields on form blank.
I was thinking of using Javascript baked into my skins on every page to read the URL, create the cookie, do comparisons, etc...then populate the hidden fields on the form with the correct value...but how do I do that? I don't see any type of id or class (in Firebug) that I can "grab" onto for hidden fields on the form.
Version info: 4.10.4.23731 / 6.0.2
If there is a better way, please let me know. I tried playing with the "Retrieve values from querystring variable for this question" and "Retrieve values from cookie variable for this question"...but how do I introduce logic that says if the querystring exists, use those values instead of the cookie?