• Resolved pskgt

    (@pskgt)


    Hi,
    I would like to select option in one field in the form using a URL, it is a “select” {select-1} field and has 6 options, I would like the 3rd option to be selected automatically by URL.
    As I understand it, I need to fill in prepopulate for this field, that’s what I did, I called it “category”. I guess URL should be like this, but I don’t know what to do next.
    URL.com/Form/?category={select-1}

    • This topic was modified 2 years, 4 months ago by pskgt.
Viewing 1 replies (of 1 total)
  • Plugin Support Pawel – WPMU DEV Support

    (@wpmudev-support9)

    Hello @pskgt !

    Hope you’re having a good week!

    You’re almost there actually. I would only suggest to make a change of the profile option as category is internally used by WordPress and it shouldn’t be used.

    I tested it on my test site while setting the profile option to have a name “t_category”.

    Then when I visited the URL with the form like this:

    URL.com/Form/?t_category=two

    The select field had the “Option 2” selected.

    Please note that the text after the = must match the value provided here for the option to be selected:

    View post on imgur.com

    Best regards,
    Pawel

Viewing 1 replies (of 1 total)
  • The topic ‘Prepopulate third option in select field’ is closed to new replies.