Can any guide how to call the UI Macro near the Text field with max length 4000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2015 11:19 AM
Hi All,
We have one UI Macro in which we have code for displaying the button and its actions. In change request we need to show that button near one text field. so we used Field decorations attribute to call that ui macro.
If we call this attribute it is working fine for normal text/string field with length 40. But not working near the Text field with max length as 4000.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2015 12:45 PM
This is frustrating, but field decorations only work on a few select field types. It doesn't work for multi-line text fields so there's no way to do what you want using a field decoration. You will have to set up some sort of client script or custom formatter to add a button like this for multi-line text fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2015 01:25 PM
Thanks for your reply Mark. How can we implement using Client script?? If any thread available means please post here.
Thanks.
Ranjith

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2015 01:44 PM
I don't have any perfect solution for this problem, but I have written an article on doing this type of thing with client scripts. You'll just have to try it out and see if it gets you close.
Adding a UI Macro to a Non-reference Field - ServiceNow Guru