- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2022 01:24 PM
Hi,
I have some RITMs that open automatically for service desk analysts to check meeting room equipment. This checklist is opened with some checkbox variables, as there are many options, the analyst requested the creation of a button or variable with the name of "Checklist ok" and when clicking, all other variables in the list must be set to true. But even doing it by client script or business rule does not work. can you help me?
If the analyst clicks on checklist ok, all previous checkbox variables should be set to "true", it didn't work with OnChange client script.
Solved! Go to Solution.
- Labels:
-
Service Desk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2022 07:48 PM
Hi
You can create an onChange Catalog Client Script, that should observe your "Checklist OK" checkbox changes and it should have "Applies to Requested Item" checked:
In this Catalog Client Script, you can add the below-provided code:
var checkListAllFields = ['checkbox_1', 'checkbox_2', 'checkbox_3', ....];
for (var i = 0; i < checkListAllFields.length; i++) {
//Below line will set all checkboxes to true if Checklist Ok is true
//If False then all will be set to false
g_form.setValue(checkListAllFields[i], newValue);
}
Please mark my answer as correct if this solves your issues!
If it helped you in any way then please mark helpful!
Thanks and regards,
Kartik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2022 04:33 AM
It worked, thank you very much Kartik!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2022 10:07 AM
Hi
Thank you for marking my answer as correct!
Always happy to help!!
Thanks and regards,
Kartik