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.


  • Profile Image

    How do I turn off getting the error messages before submit button pressed

    Asked by belletents on February 24, 2011 at 08:38 AM

    When a visitor moves away from a required field before filling it in, the background changes to a wild red colour and the Required Field error message appears. Is there a way to a) only have the error messages appear when a user presses the submit button, and b) turn off the red background altogether.

    Thank you.

    required field feature request
  • Profile Image

    Answered by DanielGriffin on February 24, 2011 at 09:17 AM

    Hi Belletents,

    Unfortunately that is the intended behavior for required fields at this time.  I will assign this to the developers as a feature request.  Hopefully we will have something for you soon but it will probably be a low priority change.

    Thanks,

    Daniel

  • Profile Image
    JotForm Support

    Answered by mliz on February 24, 2011 at 09:19 AM

    You can customise the layout of the form by using Inject Custom CSS feature.
    This code removes the red background color when an error occurs after submission.

    1) Open your form to edit.

    2) On the top toolbar> Setup and Share > Preferences

    3) Write the text below in Inject Custom CSS.

    .form-line-error{
    background: #FFFFFF;}

    4) Click OK.

     

    You can use Firefox's Firebug toolbar to find out the CSS class for every form field.

  • Profile Image

    Answered by belletents on February 24, 2011 at 10:12 AM

    Thank you DanielGriffin for your reply. Until the option is available of getting a Required Field error message only if a required form field is not filled when the Submit button is pressed, I am considering turning off required fields so as not to 'shout' at my users to fill them in whilst they are still completing the form.

  • Profile Image

    Answered by belletents on February 24, 2011 at 10:14 AM

    That's great mliz, at least that gets rid of the red. Many thanks.

  • Profile Image

    Answered by jeffest on February 14, 2012 at 08:37 PM

    Has this every been fixed? I was just testing my form and was shocked to see this behavior.

  • Profile Image
    JotForm Support

    Answered by fxr on February 15, 2012 at 07:55 AM

    It is intended behaviour.

    If you want any help customising the error message or its colours, please open a new thread and we will do our best to help you out.

  • Profile Image

    Answered by jeffest on February 15, 2012 at 08:03 PM

    Well, I get that it's intended but that doesn't mean it's a good idea. You should probably reconsider it, but in the meantime I was able to change the red background so I guess it's either that or no required fields. Thanks.

  • Profile Image

    Answered by bknets on September 24, 2013 at 02:54 PM

    I know this is an old question, but in case anyone else comes across this looking for answers, you can do the following to stop the error message from popping up. Inject custom CSS and do:

    .form-line-error .form-error-message {

    display:none;

    }

    This will keep the red border around fields missing values, but get rid of the error message.