Dynamically change hidden form value | Community
Skip to main content
June 2, 2014
Solved

Dynamically change hidden form value

  • June 2, 2014
  • 2 replies
  • 1336 views
I have a form that sets the leadsource, as well as some other hidden values statically.

Is there a standard way to dynamically set these values rather than creating multiple forms (in order to statically set the values).

Is JQuery (or so) the answer here?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Dory_Viscoglio
David, you can use URL building with a field that is ready to accept URL parameters to accomplish what you're looking for. In our forms there's a hidden field that we've set up for source, so our landing pages are appended with ?Source=XYZ after the .html

You can find more on this here.

2 replies

Dory_Viscoglio
Dory_ViscoglioAccepted solution
Level 10
June 2, 2014
David, you can use URL building with a field that is ready to accept URL parameters to accomplish what you're looking for. In our forms there's a hidden field that we've set up for source, so our landing pages are appended with ?Source=XYZ after the .html

You can find more on this here.
June 2, 2014
Thank you Dori - I was hoping not to add urls variables or cookies etc.

SOmething like javascript would have been great; however, I notice those hidden fields arent in the page source.

Seems like a URL variable is the only option