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.
Form validationAsked by Amir on May 30, 2016 at 12:41 PM
I would like to create a form with text field that will be able to do input validation on server side.
The validation should check that the entered text matches a specific string (e.g. "1234").
Is there a way to achieve this in JotForm?
Can you please tell us what kind of code you would like to run on your server?
If you can give us more details so we can see if it is possible to achieve with JotForm.
We'll wait for your response.
I would like the form to have a question:
What is the the name of the US president?
This field's validation will be done server side (so that user will not see
the answer in the 'view source').
We would like to allow user to proceed only if entered the correct value.
Hope this helps.
You can use conditional logic to hide show fields. For example you can set your condition to show other fields if value that is entered inside of your first field is "1234".
More about conditional logic you can find inside of this guide:
Here is my demo form: https://form.jotform.com/61505177319961
If you want to add custom validation and scripts, you will have to download your form's full source code and then add the custom codes. Inside of this guide you can find how to get full source code of your form: https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form
Hope this will help. Let us know if you need further assistance.