Skip to main content
Question

add background color for checkbox field

  • September 27, 2018
  • 0 replies
  • 495 views

I want to add the background color for the checkbox field. I have 3 checkboxes under section "Customer instruction" and want all of them have the yellow background as the text above.  Please see below for what I mean.

Please help and show me how to format the background of the checkbox. It would be nice if someone knows how to format the background color for the entire section.

Thank you.
This topic has been closed for replies.

EverettPatterso
Forum|alt.badge.img+10
You can use the IOL technique


Here's the simple script used in the example above, use the dev console (F12) inside your browser to track down which HTML elements you want to change




Setup IOL - https://community.quickbase.com/quickbase/topics/how-do-i-setup-the-image-onload-technique-iol


  • Author
  • Registered
  • September 28, 2018
I just realized that it just worked for that particular ticket which I got the ID from. On the another ticket, the background color got changed on different fields which I don't want to change. 





  • Author
  • Registered
  • September 28, 2018
I have to type of tickets: service center ticket and customer ticket. The customer ticket does not have checkbox fields that i want the background to be changed. That's why the background color changed on different fields on the customer ticket. Can you please show me how I can fix this problem?

Have you considered a simpler native approach?

You can just put a text element on your form beside the checkbox and Suppress the native field name.  You would check the checkbox for enable html.


<SPAN STYLE="background-color:yellow">These are the words for checkbox #1</SPAN>