- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 09:07 AM
Hello, everyone.
Does anyone have a solution for the "clear the value" checkbox issue on UI Policy?
When we check the checkbox, the variable values on RITM disappear, and when we uncheck the checkbox, a problem occurs on the form (after checking and unchecking the conditional checkbox variable, the previous value of the variable that was supposed to be cleared remains). Has anyone found a solution? that it should function as "clear the value" on the portal but not vanish the value on the RITM.
Thank you
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 11:31 AM
Just tested, it is indeed your setup that is wrong. You should use Clear the Variable value = true in combination with Visible = false.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 11:33 AM
Also see this article I wrote 5 years ago:
https://www.servicenow.com/community/developer-articles/clear-the-field-value-clear-the-variable-val...
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 09:51 AM
Hi @Yogita11_ ,
In Ui Policy you have options as applies to catalog item, applies to Requested Item ,in that check on catalog item alone so that it will work only on portal
Please mark my answer helpful/correct if it resolved your query
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 11:02 AM
Single line text variables are hidden true and it get populated when checkbox get checked. Therefore as you say's uncheck the applies on RITM, then that variables will not visible on RITM ot tasks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 10:50 PM
See my comment. You issue is just due to a misconfiguration on your end.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 11:18 AM - edited 08-28-2024 11:22 AM
HI @Yogita11_ ,
To overcome this issue, I use OnChange Catalog client script and clear the values of dependent fields using g_form.clearValue('field_name');
Hope this information helps you.
Regards,
Najmuddin.