Required fields

  • brellin
    Asked on June 27, 2014 at 9:28 AM

    Hi,

    I need to know if it's possible to show the message 'Required field' only when the form is submitted and not while it was filling.

    Thanks.

    Gaetano Amenta

  • Ashwin JotForm Support
    Replied on June 27, 2014 at 9:48 AM

    Hello Gaetano,

    Unfortunately, it is not possible to only show the validation error on click of submit button. These are javascript validation and it will trigger as soon as you move out of a form field.

    What you can do is just add custom css code in your form hide the validation error message. This will not display any error message but only highlight the field. Once you click on the submit button, it will only display an error message below the submit button. Please inject the following custom css code to hide the error message:

    .form-line-error {background: transparent;}

    .form-error-message {display: none;}

    The following guide should help you inject the custom css code:  http://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    Take a look at the following demo form:  http://form.jotformpro.com/form/41773717843968? Feel free to clone this form for a closer look. The following guide should help you in form cloning:  http://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!