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 background color of the fields when a user does not fill out a required field?

    Asked by cleanram7 on January 27, 2017 at 10:13 PM

    I want to change the background color of the "required" text fields as well as the red rectangle that comes up with the "This field is required." message. How can I do that? Please see attached screenshot by RED arrows.


    Thank you.

  • Profile Image
    JotForm Support

    Answered by John_Benson on January 28, 2017 at 06:26 AM

    If I understand you correctly, you want to change the color of the background of the field if the user leave it blank. See the image below:

    If yes, please add this custom CSS code:

    .form-line-error { 

        background: red !important;

    Here's a guide on: How-to-Inject-Custom-CSS-Codes.


    Hope this answers your question. 

  • Profile Image

    Answered by cleanram7 on January 28, 2017 at 03:22 PM