Field decorator to non reference field

BHAVANI B
Tera Contributor

How to add the custom UI Macro as a button next to non reference field?

2 REPLIES 2

G Ponsekar
Giga Guru

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

kaushal_snow
Giga Sage

@BHAVANI B ,

 

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.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/