- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2022 12:28 AM
when we select category has inquiry then remove choice 1-high from impact and urgency fields, if we change category from inquiry to other then choice 1-high should display from impact and urgency fields...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2022 03:17 AM
Great to hear that.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2022 12:39 AM
we tried this but there is no result
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var cat = g_form.getValue('category');
if (cat == 'inquiry') {
g_form.setDisplay('subcategory', false);
g_form.removeOption('impact', 1);
g_form.removeOption('urgency', 1);
g_form.showFieldMsg('impact', 'low impact is not prefering high priority', 'error', true);
} else {
g_form.setDisplay('subcategory', true);
g_form.addOption('impact', 1);
g_form.addOption('urgency', 1);
g_form.hideFieldMsg('impact');
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2022 12:45 AM
Hi
You need to have an On Change Client script on Category field and update it as below:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if(newValue == 'inquiry'){
g_form.clearOptions();
g_form.addOption('impact','2','2 - Medium');
g_form.addOption('impact','3','3 - Low');
g_form.addOption('urgency','2','2 - Medium');
g_form.addOption('urgency','3','3 - Low');
}else{
g_form.clearOptions();
g_form.addOption('impact','1','1 - High');
g_form.addOption('impact','2','2 - Medium');
g_form.addOption('impact','3','3 - Low');
g_form.addOption('urgency','1','1 - High');
g_form.addOption('urgency','2','2 - Medium');
g_form.addOption('urgency','3','3 - Low');
}
//Type appropriate comment here, and begin script below
}
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2022 02:35 AM
its working..thankyou
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2022 03:17 AM
Great to hear that.
Regards,
Shloke
Regards,
Shloke