Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading) return;

if (newValue === 'hardware') {
g_form.setMandatory('asset_tag', true);
g_form.setDisplay('asset_tag', true);
g_form.setValue('assignment_group', 'Hardware Support Group');
} else if (newValue === 'software') {
g_form.setMandatory('asset_tag', false);
g_form.setDisplay('asset_tag', false);
g_form.setValue('assignment_group', 'Software Support Group');
} else {
g_form.setMandatory('asset_tag', false);
g_form.setDisplay('asset_tag', true);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
If an Incident Category = Hardware, make Asset Tag mandatory and automatically assign to Hardware Support Group.
If Software, assign to Software Support Group and hide Asset Tag.
Loading