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

    Changing background color of text box when text box is filled

    Asked by Wolverin89 on August 23, 2015 at 06:33 AM

    Hello! Please help me with css options!

    I need same feature:

    Then text field is empty - one color presents as background of field, but then field is filled - other color for backgrounds! this is real?

  • Profile Image
    JotForm Support

    Answered by BJoanna on August 23, 2015 at 10:52 AM

    Unfortunately that is not possible to achieve inside JotForm Builder. Such feature does not exist in JotForm Builder.

    Workaround for this is to add external Java Script to manipulate input fields background. In case of adding external Java Script you will need to get full source code of your form and then to add additional script block to that full source and save that as your web page.  That means that your form need to be embedded to some web page. 

    When you get full source code of your form, then you can add  JS function.

    For more information you can read following article:

    http://stackoverflow.com/questions/17218987/changing-background-color-of-text-box-input-not-working-when-empty 

    Example is shown on this link:

    http://jsfiddle.net/2Xgfr/829/ 

    Hope this will help. Let us know if you need further assistance. 

  • Profile Image

    Answered by Wolverin89 on August 23, 2015 at 10:55 AM

    i understand! this is not possible if you not familiar with coding!Thanks you for reply!

  • Profile Image

    Answered by Wolverin89 on August 23, 2015 at 11:03 AM