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 colour of one cell in a table?

    Asked by gymfuse on July 17, 2017 at 10:00 AM

    Hi guys,

     

    I have a list of products (size/colour in a table).

     

    I want to mark one option as out of stock.

     

    Is this possible, if so, how?

     

    Page URL:
    http://bit.ly/2jGzChd

  • Profile Image
    JotForm Support

    Answered by aubreybourke on July 17, 2017 at 10:13 AM

    I cloned your form, and modified it. You can see it here:

    https://form.jotformpro.com/71973973530970

     

    Now to answer your question.

    You can use CSS. First you need to get the field ID:

    #1. Select a table

    #2. Click on properties (gear icon)

    #3. On the advanced tab, click on field details. You will see all the id's appear for the table.

     

     

    Then you need to use custom CSS:

    #4. Select and copy the field you want to change

    #5. Paste the id in the box and add the code to style the field:

    #input_1_0_0

    {

    background-color: yellow !important;

    }

    Or, if you would like to disable the field (so the user cant type anything in) add this CSS: 

    #input_1_0_0

    {

    display: none !important;

    }

    So it will look like this:

     

    #6. Remember to click the green save button!

     

  • Profile Image

    Answered by gymfuse on July 17, 2017 at 10:46 AM

    Fantastic support.

     

    Thanks a bunch