Change the field style (in list view and form view) when new work note has been added
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 01:12 AM
Hi All,
My requirement is to:
1. I am a user and I open the existing incident, I need to update this one so I add the work note.
2. User ABC is working on this incident = is assigned to this inident, but he need a clear information that sth has been updated in this incident.
3. When he open the list view of incidents then he can see that number of incident which has been updated became bold and red - thanks to that he knows tha sth changed and he needs to check this incident:
4. When he opens this incident he still can see that number is red and bold.
5. He checks everything and came back to list view of all of incident.
6. Now number of this incident is again not bold and black.
I've created:
1. New field 'u_needs_attention' in 'incident' table:
2. A 'before' business rule to set field 'number' red and bold as below:
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 01:13 AM
Hi,
if you are using field style then did you give correct condition to be checked in the Value field?
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
‎07-19-2022 01:46 AM
I am using:
javascript: current.u_needs_attention=true;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 11:21 PM
Hi,
it should be this
javascript: current.u_needs_attention.toString() == 'true';
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
‎07-19-2022 10:44 PM
The images are broken. Can you upload them as attachments? That helps in understanding the issue.
If my answer helped you in any way, please then mark it as helpful.
Mark
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark