- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2017 10:14 AM
Hi,
I have requirement like to create Reference Icon next to a string field in change request form.
When mouse is hovered on the icon, it has to display some text or sentences in it.
Can any one please post code or steps to achieve this requirement.
Thank you.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2017 02:50 AM
Hi Mike,
Thank you , I have implemented the Annotation as per your suggestion
but this link also helped me to complete my requirement.
https://www.servicenowguru.com/system-ui/ui-macros/add-macro-non-reference-field/
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2017 10:30 AM
Is this static information that is being displayed? If so, you could just use the hint option that is available on the label for the dictionary element. This would give you a tooltip on the label (Change the field label or hint). You also have the option to Add an annotation for the text.
If you have to have an icon, that is controlled by a field attribute. You would need to have the attribute added to the field dictionary definition, as well as a custom UI Macro to call it. I think you could use field_decorations, or ref_contributions to call the UI macro.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2017 02:50 AM
Hi Mike,
Thank you , I have implemented the Annotation as per your suggestion
but this link also helped me to complete my requirement.
https://www.servicenowguru.com/system-ui/ui-macros/add-macro-non-reference-field/
Thanks