Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2026 06:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2026 07:25 AM
Hello @NehruV ,
I think this is your Requirnment sheet .
To auto populate group based on item_name following onChange Client script will work :
Configuration
Type: Catalog Client Script
Applies to: Catalog Item
Script type: onChange
Variable name: item_name
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
// Clear existing value
g_form.setValue('group', '');
if (newValue == 'Curd') {
g_form.setValue('group', 'Group A');
}
else if (newValue == 'Water bottle') {
g_form.setValue('group', 'Group B');
}
else if (newValue == 'Icecrim') {
g_form.setValue('group', 'Group C');
}
else if (newValue == 'Lights') {
g_form.setValue('group', 'Group C');
}
else if (newValue == 'Cool drinks') {
g_form.setValue('group', 'Group D');
}
}
2)to show group field if item_name is not empty
UI Policy Setup
Applies to: Catalog Item
Condition:If item_name is not empty
Variable: u_group
Visible: True
Mandatory: False
Read Only: True
If this helps you then mark it as helpful and accept as solution.
Regards,
Aditya,
technical Consultant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2026 01:32 PM