Field decorator on workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I'm not able to hide field decorator created on 'Action assignment' table for a field onChange. How can we hide it onChange?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @BHAVANI B ,
ServiceNow does not provide a native g_form API method to hide or control field decorators directly.
However, you can use a supported workaround by manipulating the DOM using an onChange Client Script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
We have create new UX client script? And how to access the DOM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @BHAVANI B ,
You can use following code in your client script to remove decoration
g_form.removeDecoration('caller_id', 'icon-star', 'VIP'); //removeDecoration(String fieldname, String icon, String title)
Thanks
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
This will add or remove the icon next to field name, but I want to hide the field decorator inside the field