Hiding UI formatter on the form

girishk
Tera Expert

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

4 REPLIES 4

siva_
Giga Guru

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

Anurag Tripathi
Mega Patron
Mega Patron

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

-Anurag

Hey,

Just checking of this worked or not? Do you need anything else?

-Anurag

-Anurag