Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 01:07 PM
Update: I got it working finally. It still doesn't seem to work in the Service Portal though.
So far I have an onChange Client Script on the Subcategory field. Here is my code so far.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading) {
return;
}
if(newValue == '') {
if (g_form.getValue('category') == 'Hardware' && g_form.getValue('u_incident_type') == 'Dental') {
g_form.clearOptions('subcategory');
g_form.addOption('subcategory', 'Computer', 'Computer');
g_form.addOption('subcategory', 'Document Scanner', 'Document Scanner');
g_form.addOption('subcategory', 'Intraoral Scanner', 'Intraoral Scanner');
g_form.addOption('subcategory', 'Topaz Signature Pad', 'Topaz Signature Pad');
g_form.addOption('subcategory', 'X-Ray', 'X-Ray');
g_form.addOption('subcategory', '3D Scanner', '3D Scanner');
}
}
}
This is working in the backend\instance version of the Incident form. Glad I've made some progress cause this was driving me nuts.