Based on condition show/hide List collector values
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2024 06:59 AM
Hi Community,
Hope you are doing great.
On the catalog form based on condition , type - List collector , fields values are populating.
my requirement is populated values should not show as dropdown.
for that I have written onChange script. But it is not working.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
//Type appropriate comment here, and begin script below
var answer = [];
var gpValue = newValue.split(',');
if (newValue != '') {
for (i = 0; i < gpValue.length; i++) {
g_form.removeOption('g_p', gpValue[i]);
}
}
}
Regards,
Harsha
0 REPLIES 0