On change of checkbox(s)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2025 07:56 PM
Hello @developers,
I have an implementation where on change of checkboxs i need to empty another variable, There are 7 checkboxs , so instead of writing onchange client script on each checkbox , how can i write this condition in simple steps.
Any help is appreciated, Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2025 08:02 PM
Hi @servicenow14710 ,
You can create Catalog UI Policies and Catalog UI policy Actions. you can combine the conditions and clear the value if they do not meet.
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2025 08:04 PM
@Chaitanya ILCR : i have to do this onchange of checkboxs , how can i implement this via ui policies, can you please elaborate and there are seven checkboxs , thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2025 08:10 PM
make a using those checkboxes Catalog UI policy on when the variable should be visible. Check the Reverse if false and Check the Clear Value(checkbox on the catalog ui policy action)
so when the condition doesn't meet the value will be cleared automatically
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2025 08:18 PM
@Chaitanya ILCR :here there is no need to meet any condition, the implementation is lets say
c1 is checked
c2 is unchecked
c3 is checked and so on if i change any one in the above like if i make c1 as unchecked / c2 is checked/c3 is unchcked the depenedent variable has to clear ,
the mentioned approach will not be able to satisfy this requirement,
Thanks!