Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan 1285 posts 3917 karma points c-trib
    Jun 29, 2011 @ 16:40
    Dan
    0

    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

  • Dan 1285 posts 3917 karma points c-trib
    Jun 29, 2011 @ 17:11
    Dan
    1

    Turns out it's easy.  Just put:

    [@myValue]

    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!

Please Sign in or register to post replies

Write your reply to:

Draft