Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2025 03:36 AM - edited 01-22-2025 03:51 AM
Write this script on onChange client script on subcategory field .
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || isTemplate) {
return;
}
var category = g_form.getValue('category');
if (category == 'Dev' && newValue == 'Test') {
g_form.showFieldMsg('subcategory', 'This is a Test subcategory for Development', 'info');
} else {
g_form.hideFieldMsg('subcategory');
}
}