Hide false checkboxes from RITM and Task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 02:14 PM
This is a requirement for my Catalog items in general.
If a checkbox variable type is not checked, it should be hidden in the RITM and Task.
I have created a Script Include to retrieve the RITM variable names and types. If type is 'checkbox' and value is 'false', the variable should be hidden.
I would appreciate some feedback as the scripts are not working as expected at the moment:
onLoad Catalog Client script
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 02:20 PM - edited 12-09-2024 02:21 PM
Hi @xhensilahad ,
Did you try to Catalog UI Policy and Action, you can check that "if a checkbox is checked or not".
What is need of GlideAjax here.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 11:04 PM
Hi Ashish,
I need to dynamically hide all the checkboxes that were not selected,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 02:32 AM
You can do the same using the catalog UI Policy, configuring the UI policy to apply the changes to catalog tasks and requested items.
You can check the fields below in the catalog UI policy.
Regards,
Sheezan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 03:34 AM
Hi @xhensilahad
For the best solution try to use the Catalog UI Policy to work this requirement in RITM and CTasks.
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************