Based on condition show/hide List collector values

Harsha1
Tera Contributor

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.

 

Harsha1_0-1715349560236.png

 

 

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