Select value of drop-down list based on querystring parameter
Hi,
I have a contact form which contains a drop-down list of options. I'd like to select one of these options based on a querystring variable passed to the contact page.
as the default value in the drop-down, then set the value of the querystring parameter to the value of the item you want to target in the drop-down. (Works for text inputs, radio buttons etc too). Useful!
Select value of drop-down list based on querystring parameter
Hi,
I have a contact form which contains a drop-down list of options. I'd like to select one of these options based on a querystring variable passed to the contact page.
Is this possible? If so, how?
Thanks
Turns out it's easy. Just put:
as the default value in the drop-down, then set the value of the querystring parameter to the value of the item you want to target in the drop-down. (Works for text inputs, radio buttons etc too). Useful!
is working on a reply...