Catalog item "clear the value" checkbox issue

Yogita11_
Tera Contributor

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

1 ACCEPTED SOLUTION

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

LinkedIn

View solution in original post

16 REPLIES 16

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

Yogita11__0-1724863940851.png

Yogita11__1-1724863965362.png

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.

Yogita11__2-1724864402509.png

 

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

 

 

Hi,

Can you please also share the conditions on the Catalog UI Policy ?
It will help understand the issue, and give proper suggestions.

Yogita11_
Tera Contributor

Condition is simple "Need Hardware" is true.