- worrellAsked on June 23, 2010 at 10:07 AMFor example, can we require a password in order to take a survey created in JotForm?
- JotForm FounderaytekinAnswered on June 24, 2010 at 06:12 AM
NOTE: This is a workaround, not a perfectly secure feature. Jotform currently does not have a built-in password protection feature for forms. The password used for this solution is visible in the form's source code.
Use this solution at your own risk.
Yes, you can use Conditions to password protect your form. I created one to write the tutorial below for you. You can test it here:
Here is how you can accomplish this:
1. Add a password question to the beginning of your form. The password box is under "Power Tools".
2. Add a "BageBreak" question to your form. It is under "Survey Tools" toolbox.
3. Add this Condition:
When "Enter password" Not Equals To "test"
It is actually quite simple. Until the user enters the correct password she keeps being returned back to the first page and can never see the next page.
- asunwatcherAnswered on November 02, 2010 at 01:06 PM
this is a great tutorial thanks. Would it be possible to have multiple passwords and usernames then to access the same form? Is it just a case of expanding the Condition with OR ?
- JotForm FounderaytekinAnswered on November 03, 2010 at 03:12 PM
Yes, this is a great example to using the OR on conditions.
- alyegAnswered on April 19, 2011 at 01:39 PM
Thanks that is helpful but - ow do you set a "condition" I do not see this feature?
- JotForm SupportNeilVicenteAnswered on April 19, 2011 at 02:33 PM
Refer to this page - Conditional Logic on Forms - for more information on how to implement conditions in your form. Get back to us if you need clarifications. Thank you.
- alyegAnswered on April 19, 2011 at 03:47 PM
Yes - thanks, this works great. One last question (hopefully) is there a way to have the survey put the response data into a table or data base vs. just an email response?
- JotForm SupportmlizAnswered on April 19, 2011 at 09:47 PM
With the use of Send Post data you can transmit the results to another url.
To see how "send post data" works:
1. Create a "test.php" on your site and put this code in it:
<? print_r($_POST); ?>
2. Go to "Setup & Share" -> "Thank You" -> "Custom URL" and enter http://domain.com/test.php
3. Enable the "Send Post Data"
4. Save and submit your form.
After that you would need to write the code to save these data to your database.
The data is transmitted using HTTP Post.
Hope this helps.