Is there any way to change the colour of a Tab depending on a database field?
What I am looking to do is within a contact database, for example, when I select a contact I already have a number of tabs of information but now want to have an Alert tab with say 5 check boxes on it. If check box 1 is ticked I want the tab to be Red in colour if any of the other 4 check boxes are ticked then I want the tab to be orange in colour or normal grey if nothing is ticked. (Its an easy visual way to indicate an alert status without going into the Alert tab.
Welcome to the nuBuilder forums!
Please register and login to view forums and other content only available to registered users.
Please register and login to view forums and other content only available to registered users.
Conditional Tab Colour
-
- Posts: 28
- Joined: Sat Apr 30, 2016 2:51 am
Re: Conditional Tab Colour
F12 is your friend
identify the handle, fire 'onchange' and apply your-css to the handle
identify the handle, fire 'onchange' and apply your-css to the handle
-
- Site Admin
- Posts: 2782
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 2 times
Re: Conditional Tab Colour
ScottG,
hanstel is right.
Changing a field's background color can be done like this..
Steven
hanstel is right.
Changing a field's background color can be done like this..
Code: Select all
$('#field1').css('background-color','red');