Highlight text or background in field on table

  • cgregory
    Asked on October 16, 2017 at 10:47 AM

    1508165200Capture Screenshot 10

    I want to highlight the background in the "METAL TYPE" input based on the text


  • Jan
    Replied on October 16, 2017 at 12:14 PM

    My understanding is that you want to change the background color of that specific field inside the Input Table.

    If yes, then please use the CSS code below:

    #input_9_0_1 {
    background: yellow;
    }

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

    150817002610 17 jdluv Screenshot 10

    If you are referring to a different issue, please let us know. Thank you.

  • cgregory
    Replied on October 16, 2017 at 1:07 PM

    Yes, Perfect.

    But one more customization, can the background color change per the text input?

    if one types RED or type YELLOW, can it be black text with highlighted background of red or yellow?



  • Jan
    Replied on October 16, 2017 at 1:41 PM

    Unfortunately, it is not possible to change the CSS value of an element based on a condition.

    If you want, you can create 2 Input Tables and have a condition wherein the specific Input Table will appear based on the condition. Here's a guide: How-to-Show-or-Hide-Fields-Base-on-User-s-Answer.

    Thank you for your understanding.