- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2020 11:50 PM
Hello Team,
I have a requirement to change the background colour field based on given condition.
As I highlighted above, If a word ends with ly , I want to show that column color as some green or red anything,
How to achieve this??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2020 11:54 PM
Hi,
you can use the Modern Cell Coloring option
uncheck that option from gear icon
apply style like this
1) left nav type field styles
2) create new
3) give your table
4) Select the field name
5) Value - give proper field name here
javascript: current.alphabets.endsWith('ly')
6) style - color: green
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2020 11:54 PM
Hi,
you can use the Modern Cell Coloring option
uncheck that option from gear icon
apply style like this
1) left nav type field styles
2) create new
3) give your table
4) Select the field name
5) Value - give proper field name here
javascript: current.alphabets.endsWith('ly')
6) style - color: green
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2020 12:05 AM
That's awesome. Thanks much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2020 12:12 AM
You are welcome
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 07:43 AM
@Ankur Bawiskar, how i use this rule, but condition other filed ? For ex, change back field Lenght, with same condition (javascript: current.alphabets.endsWith('ly')) ?