How to add phone icon in the place of info icon at right side of caller field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-13-2022 04:42 AM
How to add phone icon in the place of info icon at right side of caller field
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-13-2022 04:59 AM
Hi
This explains how to display special icons on Incident form (Caller field) based on user profile settings.
Example :
If āAffected Personā belongs to āVIPā then display āVIPā icon image in āUsersā List view as well as on āIncidentā form
Solution
- Create a Client Script as shown below
- Upload the required icon image to System UI -> Images
- Write down below code under script.
if (caller.vip == ātrueā) {
callerLabel.setStyle({backgroundImage: āurl(images/icons/vip.gif)ā, backgroundRepeat: āno-repeatā, backgroundPosition: bgPosition, paddingLeft: ā30pxā });
}
- Whenever āAffected Personā field value is selected, if the selected user belongs to āVIPā then āVIPā flag will be shown on Incident as shown below.
- To display the icons in List view , Below are the steps
- Goto Sytem UI -> Field Styles
- Create new one as shown below
- Below is how shown in List view.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-13-2022 08:56 PM
Hi,
Any update to this ?Any follow-up required? if not
Kindly mark the answer as Correct & Helpful both such that others can get help.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-13-2022 05:03 AM
Which caller field are you referring? incident?
You can add the icon using UI macro for the field if it's reference type using the field attribute
ref_contributions=UI Macro_name
check this link
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
ā06-13-2022 09:51 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader