- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2019 12:07 PM
Hi,
I have a variable (type = CheckBox) that when it is checked, I do not want the attachments on the SC item to be mandatory, otherwise if the CheckBox is not checked, it should be mandatory. I can't figure out how to achieve this. Can someone provide the best practice solution/suggestion please?
Thanks!
Solved! Go to Solution.
- Labels:
-
Request Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2019 12:34 PM
Do you have attachments mandatory through a catalog client script? If so, you can try getting the variable value and using it on a condition to run the script:
var chk = g_form.getValue('[checkbox variable]');
if (chk == false){
// attachment mandatory script
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2019 06:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2019 07:08 AM
Hi Preet,
I would utilize an advanced UI Policy. Set your filter requirements when checkbox = true.
Under script - execute if true, use the following code.
function onCondition() {
g_form.disableAttachments();
}
If my answer helped you, Kindly mark it as correct and helpful. 😉
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2019 07:20 AM