Hiding UI formatter on the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2018 02:47 AM
Hi all,
We have a UI formatter created via UI macro and its currently visible in the form.Is there any way to configure the visibility of this formatter based on conditions via client scripts or UI policies??
Thanks,
GK
- Labels:
-
Best Practices

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2018 02:51 AM
Please have a look at this link that may help you
https://community.servicenow.com/community?id=community_question&sys_id=41038ba1dbd8dbc01dcaf3231f961930
Mark this response as correct if that helps
Thanks,
SIVA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2018 02:52 AM
Hi,
Please see the below link:
Mark this response as correct if that helps
Thanks,
PKG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2018 02:52 AM
I usually put the condition in the ui macro itself
Ui macro code would be something like
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<j2:if test="$[current.XXX== 'HAHA']">
</j2:if>
</j:jelly>
Please mark my answer correct if it solves your issue.
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2018 08:01 AM
Hey,
Just checking of this worked or not? Do you need anything else?
-Anurag