Field decorator to non reference field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2025 02:28 AM
How to add the custom UI Macro as a button next to non reference field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2025 02:34 AM
Hi @BHAVANI B ,
Please check this article: https://servicenowguru.com/ui-macros/add-macro-non-reference-field/#:~:text=In%20Service%2Dnow%20ter...
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
Thanks, GP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2025 05:16 PM
You can add a custom UI Macro button next to a non reference field by using field decorators / attributes in the field dictionary (for example using ref_contributions=macro_name) and/or a client script / formatter to inject the macro, though note that field decorations don’t work on all field types (especially multi-line text fields) so you may need to fall back to a custom client script or formatter approach....
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
