What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
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 can I redirect based on where the form is embedded?Asked by PowersDistributing on August 23, 2013 at 03:40 PM
I want to redirect differently based on whether the form is filled out on our website (embedded), or filled out on an intranet page (embedded) in our offices.
I realize I could put a question that the user answers to determine the redirection to perform, but I'd rather not rely on a user's answer.
Yes, you can do that using conditional logics which must be set upon user's choices, you would have to make those choices as required to get accurate results
The conditional that I can see would accomplish your scenario could be Change Thank You URL after submisison option . So that when a condition is met (an option is choosen) the form will submit to a certain webpage in your site.
Please check my example form to see how it would work.
On this example I put 2 options
-General Use Portable Ramp
-Steps or Porch/Deck
Then at the Conditional Wizard I have set:
IF General Use Portable Ramp OR IF Select Total Rise EQUALS TO 3 Inches
THEN REDIRECT : http://www.google.com (which in your case should be the page you want to show)
You can force that all of the condition should be met by choosing
IF ALL rather than IF ANY. You can add as many rules as you want for each conditions, in my case I added 2
I hope this example helps you to set your scenario. Of course that you'll need to have a webpage already designed showing the results for the different options the user might choose to.
Thanks for the detailed response, but as stated in original post, I realize I could put a question that the user answers to determine the redirection to perform, but I'd rather not rely on a user's answer.
Unfortunately this would only be possible if you were able to enter relative url path in the custom url field when setting up your thank you page. As it is not currently possible to use relative paths the only options I am seeing is to either implement Jeanette's suggestion or to create a custom php page that will redirect the user accordingly.
Thank you for the suggestions.
It looks like I have two ways of doing this.
1) Clone the form and set the redirects differently in each form. Not the best for a number of reasons.
2) Come up with a question that can be used to determine which redirect to use, but won't influence the users answer simply by being asked. In this case, it is not easy to come up with a question like that. But this is the method I'm using.
You're welcome we are always happy to help!
Thanks for letting us know the approach that you decided to take. Please feel free to contact us again in the future if you have any further questions.