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 can I change the field error highlight color?

    Asked by LBounce on August 06, 2016 at 08:29 AM

    Hello, 

     

    As attached please helps change the colour of the highlight field to: #007cba

    * Also, I would like every field on my form to be mandatry and highlight when not completed

     

    Thanks, Scott

    Screenshot
    colour change field field error thanks hello attached
  • Profile Image
    JotForm Support

    Answered by Nik_C on August 06, 2016 at 09:08 AM

    In order to change the field highlight color you will have to inject the following CSS code:

    .form-line-error input:not(#coupon-input),  .form-line-error textarea,  .form-line-error .form-validation-error {

        border: 1px solid #007cba!important;

        -webkit-box-shadow: 0 0 3px #007cba!important;

        -moz-box-shadow: 0 0 3px #007cba;

        box-shadow: 0 0 3px #007cba;

    }

    .form-textbox:focus, .form-textarea:focus {

        border: 1px solid #007cba!important;

        outline: none;

    }

    To inject the CSS code follow this guide:

    To make all the fields required you will have to check the required option for every field in a form.

    Let us know if this worked for you.