- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 10:12 PM
Hi,
I have to add an Help icon to each field on condition. Could you please let me know the procedure / steps to do this?
Thanks
Guru
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 05:04 AM
It sounds like you need field_decorations (or ref_contributions), an attribute on the field that displays a UI Macro after the field.
See http://wiki.servicenow.com/index.php?title=Dictionary_Attributes#gsc.tab=0
Assume you want to add a help icon to the CI field ion an Incident when the Xfire CI is selected.
Find an icon image and add it to the Image gallery
Create a UI Macro
Your condition for showing the icon is in the evaluate script here.
Update the Attributes on the field in the Dictionary:
Each attribute is separated by commas, and each value for one attribute is separated by semi-colons.
Please note that ref_contributions/field_decorations do not work on all field types.
The result is this
The icon will show when you save the form. You can use a Client Script to show it as soon as the field is changed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2018 09:54 PM
Hi Geoffrey.
Could you please give code in edit format so that I can copy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2021 06:22 AM
Caller ID field attribute:
Please let me now your thoughts.
Thanks & Reagrds,
Prasanna Kumar