SOLVED

Dynamically change hidden form value

Go to solution
Anonymous
Not applicable

Dynamically change hidden form value

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?
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Dory_Viscoglio
Level 10

Re: Dynamically change hidden form value

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.

View solution in original post

2 REPLIES 2
Dory_Viscoglio
Level 10

Re: Dynamically change hidden form value

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.
Anonymous
Not applicable

Re: Dynamically change hidden form value

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