select from dropdown menu based on url variable
-
Hi, I have a simple dropdown list.
I generate an URL with some variables, I was wondering if it’s possible to assign the drop-down menu item to that whats given in the URL
For example:
The variable is a ‘pass back’ and named
results_delivery (just like the slug of that dropdown list)
{variable:results_delivery}I tried to add this variable to:
default option and/or placeholderdrop-down list options:
48 Hours
Standard DeliveryUnder no condition, I can make the URL variable to assign the correct item in the list
myexampleurl.com/&results_delivery=48%20Hours
I also tried to assign an index as I thought it would make sense but that doesn’t work.
myexampleurl.com/&results_delivery=0Thanks for your expertise.
The topic ‘select from dropdown menu based on url variable’ is closed to new replies.