Preselect value in dropdown using value from URL
-
Hi!
I use Contact Form 7 and try to do following simple use case:
Via URL I want to set the value of the contact form. The URL looks like this:
contact-form/?package=opt1My contact form code looks like that:
[select package default:get “Description of Option 1|opt1” “Description of Option 2|opt2” “Description of Option 3|opt3″]I have 2 issues:
1.
The value of the option is ignored. It creates following code:
<option value=”Description of Option 1“>Description of Option 1</option>I would expect following:
<option value=”opt1“>Description of Option 1</option>2.
This is related to the first issue (I guess). The dropdown now doesn’t know the value “opt1” and hence doesn’t pre-select it.Any ideas?
BR
Stephan
The topic ‘Preselect value in dropdown using value from URL’ is closed to new replies.