- lasercorpAsked 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.
- JotForm SupportTitusNAnswered on November 27, 2013 at 03:01 PM
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.
- lasercorpAnswered on November 27, 2013 at 03:08 PM
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.
- CesarAnswered on November 27, 2013 at 03:51 PM
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.
- JotForm SupportTitusNAnswered on November 27, 2013 at 05:21 PM
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.