Copied to clipboard

Flag this post as spam?

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


  • Dan 1288 posts 3942 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 1288 posts 3942 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!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies