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 to change text and background color of text field?

    Asked by haggis on February 02, 2017 at 01:49 AM

    Now if we could change the text and/or background color of the different dinner dates.  i.e. Tuesday is white, Wednesday is blue, etc.

     

    https://form.jotform.com/70314866264155

  • Profile Image
    JotForm Support

    Answered by ashwin_d on February 02, 2017 at 01:59 AM

    Hello haggis,

    If I understand your requirement correctly, you want to change the background color of entire text field. Is that correct?

    Please inject the following custom css code in your form to change the background color of text fields:

    /*For Tuesday*/

    li#id_15 {

        background-color: aquamarine;

    }

     

    /*Wednesday*/

    li#id_16 {

        background-color: antiquewhite;

    }

     

    /*Thursday*/

    li#id_17 {

        background-color: wheat;

    }

     

    /*Friday*/

    li#id_18 {

        background-color: aliceblue;

    }

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

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!