- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2015 02:18 AM
Dear Friends,
I have a Catalog Item. There i have one check box type variable(Let us say abc) and two date type variables(let us say mno and pqr). I want if abc variable is checked then mno and pqr variables should be visible otherwise these(mno and pqr) should remain invisible. Can you please tell how can I achieve that?
Thank you
Ramandeep
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2015 03:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2015 03:28 AM
Hi Rushil,
I deleted the client script and used only the UI Policy as shared by Pradeep and it only working fine.
Thank you for the help!
Ramandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2015 03:32 AM
hi ramandeep,
yes that is much better way. I also did not realize that it will hide the fields automatically.
thanks,
Rushit patel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2015 03:24 AM
Hi Pradeep,
Yes it is working fine. Thank you very much! Can you please tell how it is hiding these 2 fields when I open the Item?
Thanks
Ramandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2015 05:29 AM
Hi Ramdeep,
UI policy runs on load so the actions are taken as per the conditions.
Link for Ui policy:
Creating a UI Policy - ServiceNow Wiki