- lhcrtwebmasterAsked on January 02, 2018 at 09:32 AM
I want to create a logical condition whereby the form filler has to answer a specific question correctly as a sign of good intent. Unless the answer is correct the form should not be submitted and a message should state that the question must be answered correctly to proceed. (We do not want Capcha and this method works fine)
I cannot find any logic to prevent submission. Is there anyway to acheive this?
- JotForm SupportAdrianAnswered on January 02, 2018 at 10:42 AM
You can hide the Submit button unless the user selects the correct answer.
Here is an example: https://form.jotform.com/80014324278955
Here is the conditional I used:
For this to work, you would need to use the All Questions in One Page form layout, which you can change under Form SETTINGS, SHOW MORE OPTIONS, Form Layout.
- lhcrtwebmasterAnswered on January 02, 2018 at 11:24 AM
I rather like the multi-page layout. You gave me the idea of having my test early on and hiding some of the questions but it doesnt work because the submit button always appears on the last question being shown.
The logic needs an option to hide the submit button until the answers have been validated.
- JotForm SupportAdrianAnswered on January 02, 2018 at 12:15 PM
I used a similar logic using the new layout.
Here is an example: https://form.jotform.com/80014298478967
I added two Short Text Entries. The first one is the one where the user needs to type the correct answer. The second Short Text Entry is Required and Read-Only. This prevents the submission of the form if the answer is incorrect first.
All the other questions are Hidden by default.
Then using two IF conditionals the form has the logic you need.
So, if the correct answer is typed, you hide the Second Short Text Entry and you Show all the other fields.
- lhcrtwebmasterAnswered on January 02, 2018 at 06:39 PM
Clever! That works well. Thanks a lot.
In the end I just had one more read-only short text field that says "review your answers or press Submit" after my test.