• 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=opt1

    My 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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Preselect value in dropdown using value from URL’ is closed to new replies.