PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Pre-select dropdown field option (pass variable)

  1. Anonymous
    Unregistered

    Is it possible to achieve the following:

    I have a link CLICK TO ASK [NAME] A QUESTION. [NAME] is automatically pulled in from Wordpress (First name or First+Last, I can get both to work). I want to pass that as variable into a form on another page.

    On the page where there's a form, I have a dropdown field listing these names in "First+Last" format.

    Is it possible to pre-select a name in the dropdown based on what is passed on?

    Just to clarify, the challenge here is that I can't enter ?name=name goes here manually, it has to be matched up from what Wordpress outputs (first+last) to a variable in the dropdown. Thanks!

    Posted 11 years ago on Thursday October 11, 2012 | Permalink
  2. Do you have a link to the page where the list exists, and where your form exists?

    If you are already populating the link with the first and last name, you're in good shape. Your link just needs to add the query string to it, to send those values to the form. There are two parts to this: you have to configure the form fields to allow the name to be populated dynamically, and then you need to actually send those values to the form with the same parameter name.

    Your link will look something like this:
    http://example.com/form-page/?fn=FirstName&ln=LastName

    Then, in the form, on the advanced tab for the name field, check "Allow field to be populated dynamically" and in the First and Last name parameter field, enter fn and ln.

    That way, clicking on the link will preselect the first and last name in your drop down.

    The name in your drop down will need to match exactly the name as it comes in the query string or it won't be preselected.

    Posted 11 years ago on Sunday October 14, 2012 | Permalink
  3. Anonymous
    Unregistered

    Hi there,
    my dropdown lists the names like this "First Last1", "First Last2". They're not split between first/last name fields (and I'd prefer to keep it that way because I also ask for the visitor's name and it would be too confusing to have 2 first and last name fields).

    I'm able to pass the name to a plain text field, but not to a dropdown, even though the name matches what's in the list exactly.

    Posted 11 years ago on Sunday October 14, 2012 | Permalink
  4. Anonymous
    Unregistered

    Dropdown field is set to "populate dynamically" with the right parameter.

    Posted 11 years ago on Sunday October 14, 2012 | Permalink
  5. How are the links being created with the first and last names now? Can you post a link to the page where the link exists so we can see what it looks like?

    Posted 11 years ago on Monday October 15, 2012 | Permalink