JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How to redirect to url after specific choice in drop down box without submitAsked by lasercorp on November 27, 2013 at 02:06 PM
In a dropdown box, I require that if a user selects an speficic value and based upon that value, ( without press submit, in VBA it is called after update) the form redirects to a url.
You can set up a condition that dictates the action of the form by setting up conditional logic.
Conditional logic will prompt an action to execute should a certain condition/conditions be met by the person filling the form.
In order to redirect a user to a URL based on what they have filled on the form, using the 'conditional logic' link above:
1. Go to your form editor, select the "setup and embed" tab
2. Click on the "Conditions" button on the toolbar. The Conditions Wizard will pop-up
3. Select "Change thank you URL after submission"
4. Enter the conditions that would lead to the user being redirected to your desired URL
4. Click save and test to see run a preview and test to see that it works.
I Hope this helps Eric.
I have used conditional logic extensively in my forms.
My question is how to redirect without using the submit button as I do not want the user to have to fill out the form if they are going to be redirected to another form based upon the answer in the dropdown box.
Hello Eric, Unfortunately, this is not possible utilizing the standard Form Editor tools. The standard behavior will require you to click on the submit button so the form can send the data to another location, if needed.
Nevertheless, you are able to download your form's complete source code so that you can perform the neccesary customization you require to achieve your desired function.
If you do need further assistance, do let us know. Thank you.
See if this workaround works for you:
Conditional Logic can suprisingly achieve very useful results.
Please take a look at this form; if the user selects 'option 1' in the drop down list, all other fields are hidden and a "complete" button is displayed for the user to click, which cancels the submission and redirects him/her to a url that you will have set.
If this could be what you are looking for, here are the steps to achieve this.
1. Create a cancel button using the instructions and screencast on this thread. Remember to edit the html appropriately by filling your desired redirect URL and 'target' attribute. You may want to add some text next to the "Cancel" button so that the field is visible when creating rules in conditional logic.
2. Add a condition to hide the "cancel" button should the drop down list in question be empty.
3. Add another condition to hide the "cancel" button should the drop down list selection be anything other than "option 1"
4. Add another condition to hide the submit button should the user select "option 1" from the drop down list.
5. Add another condition that hides all the other fields so that the user is left with the option to click the "cancel button"
The 'cancel button' can be renamed in the HTML code. In the sample form, it is called "complete" and it is only visible when a user selects "option 1"
I hope this workaround helps.