- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2017 09:47 PM
I am trying to apply two field styles on the incident Number field.Below are the 2 field styles:
1.If state is In Progress , field style used is "text-align:right"
2.If Priority is P1 , field style used is "background-image: url('myIcon.gif');"
So when an Incident State is In Progress & Priority is P1 ,only the "text-align:right" is getting applied.But I want both the styles to get applied.
Kindly help.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 12:35 AM
Try this
Create a third style merging those 2 conditions
Condition: javascript: current.state =='3' && current.priority =='1'
Value :
background-image: url('myIcon.gif');
padding-right: 30px;
background-position: 98% 6px;
background-repeat: no-repeat;
text-align:right

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2017 09:31 PM
Hi Amala,
Yes, it works. current works in field styles. You can query few out of box field styles where script includes are used. Navigate to System UI-> Field Styles and search by Value contains 'new'
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2017 10:45 PM
Hi Amala,
Did creating the 3rd condition worked?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2017 01:38 AM
Yes, it worked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2021 06:08 AM
Hello Aakash
I've two conditions being applied on the Number field (one SLA which gives a green dot) and one more Escalate button (if true on incident form) an alarm icon
as suggested created 3 styles (two individually) and one merged (both conditions) but when viewed in the list form for an incident where SLA is green and escalate button is tru only alrm icon is visible where as green dot is missing/overidden
Besides to this when I load that perticular incident the Incident cell isn't filled with green but alarm icon is alony mapped
I would also need the indication of two things (green fill representing SLA within timelines) alarm (esclated ticket) as a field Escalate is checked true on Incident form
Could you assist me on this!