The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Select Value In Dropdown Using Param in URL
Heya! I've got a website that I'm working on and I'm trying to use the "get_parameter" shortcode to select an option in a select box in my form based on the URL my users are coming from.
For example, in the select box on the backend I've entered "[get param=name]" into the Dynamic default value field. The dropdown is a list of names. Then when I build my URLs, I have "websitename.com/form-page?name=John%20Doe" as a link title. Instead of taking me to that form page with "John Doe" selected in the dropdown, it redirects me to the page "websitename.com/John-Doe" regardless of whether or not that page exists.
I've gone through the documentation and some of the help desk questions and I FEEL like I'm doing it right but I must be missing some critical piece of info. Any suggestions would be tremendously helpful. Thank you!
December 19, 2017 at 7:52 pm
I've ran into similar problems in the past. The problem was fixed when I changed a generic URL parameter name to something less common. Try changing "name=" to "fullname=". Here's a list of reserved Wordpress URL parameter names to avoid:
https://binarym.com/2009/wordpress-kinda-404s-with-get-parameters/
See the post by Julian Egelstaff
December 20, 2017 at 6:51 am
Yep, that's exactly what was going on. Changed it to "workwith" and it worked immediately. Thanks!
Discussion closed.