-
mjlondonAsked on November 24, 2018 at 7:37 PM
I want an "Email" field on my form to show the user an error message (and not to proceed with the form submission) if the text entered appears *NOT* to be a valid email address.
For example: xx@xx.xx is accepted as valid because it **might** be a valid address;
but xx@xx.x is not because '.x' cannot be a valid TLD;
and xx@xx is not because there is no '.' after the '@'
How can I most easily add this functionality to any Email form field?
-
Kevin Support Team LeadReplied on November 24, 2018 at 10:20 PM
If you're using card forms then you may do this through the email field settings:
Now, if you're using classic forms, then you will need to set up conditions to show/hide the submit button and/or a text message stating the email address is not valid, this guide will help you with the conditions: https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer
To know more about the card and classic forms, you may check this guide: https://www.jotform.com/help/494-Cards-or-Classic-Which-One-Should-I-Use
Thanks.
-
mjLondonReplied on November 24, 2018 at 10:31 PM
OK. I get it. Card Forms have email validation built-in, Classic Forms I have to construct the validation myself.
So, next question, with Card Forms am I limited to short, single-line answers?
Or can I have longer, textarea-like answers?
-
Elton Support Team LeadReplied on November 25, 2018 at 12:56 AM
Yes, you can have fields like Textbox (Short Text Entry) and Textarea (Long Text Entry) on Card Forms too. Card form is basically a 1 field per page but there's also a special tool which you can add multiple fields. It's called Multi-line Question.