• Resolved krashx6

    (@krashx6)


    I have forms through my site that are just “Enter Your Name” and “Select Your Service”. Whenever you use any of them and click submit, they take you to the larger “Request Appointment” form, which automatically has the Name filled out. I’m passing the name and selected service to the larger form via the url (site.com/?name=your-name?service=your-service.

    This works great for the standard text field “Your Name”, but unfortunately I haven’t found a way to pass the drop-down selection from the smaller form to the larger form.

    Anyone have any suggestions to make this work?

    I found this link that appears to do exactly that, but its quite old and im not following how to accomplish this.
    https://trackitweb.com/contact-form-7-set-the-default-value-for-select-fields-using-the-url/

Viewing 1 replies (of 1 total)
  • Thread Starter krashx6

    (@krashx6)

    I solved it, but wanted to post my solution incase someone in the future comes across it.

    Form 1 (the small form that submit to the large one)
    Make sure to use a plugin that passes all field data via URL string (Contact Form 7 Redirection).
    [select* the-recipient “Employee One|employeeone@yourdomain.com” “Employee Two|employeetwo@yourdomain.com” “Employee Three|employeethree@yourdomain.com”]

    Once the above form is submitted, it forwards them to https://yourdomain.com/form-2/?the-recipient=Employee%20Two

    Which will auto-select the-recipient on form 2.

    Form 2 (the large form that contains everything else)
    [select* the-recipient default:get “Employee One|employeeone@yourdomain.com” “Employee Two|employeetwo@yourdomain.com” “Employee Three|employeethree@yourdomain.com”]

Viewing 1 replies (of 1 total)
  • The topic ‘Pass data to Dropdown list? or change default selection it the list?’ is closed to new replies.