- 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 09:11 AM
Hi there,
Not aware of this being an issue. Can you share your setup, perhaps we can reproduce?
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 10:15 AM - edited 08-28-2024 10:59 AM
Yes, Sure.
Scenario one - As shown in the screenshot above, I initially checked the checkbox, which populated the "Please mention the device" variable. So I entered the value "test", then unchecked the checkbox, and the single line text variable disappeared. If I check the checkbox again, the value is cleared from that variable. This is expected and should clear the old value. So this happened because the "clear the variable value" was set to true, as shown in the screenshot below.
However with this configuration the variable "Please mention the device" value is always get vanished on the RITM. This is the problem.
Scenario Two— And vice versa If "clear the variable value" is set to false, the dependent variable value(single line text)will not be cleared after checking and unchecking the checkbox on form. So, that does not looks good on because it stores the old value. We want the above behavior (Scenario one) without vanishing the variable on RITM.
Could you please suggest the solution.
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 10:28 AM
Hi,
Can you please also share the conditions on the Catalog UI Policy ?
It will help understand the issue, and give proper suggestions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 10:55 AM
Condition is simple "Need Hardware" is true.