When i am writing a client script on NOne option to clear the values its not working.

sushma9
Tera Contributor

I have written On change client script when None Is selected to clear the options but its not working .please find the script below.

function onChange(control, oldValue, newValue, isLoading) {

if (newValue == '  ') {

g_form.clearOptions('which_state_is_impacted');
}

}

10 REPLIES 10

sushma9
Tera Contributor

Everything is good  and i am not sure why its coming like that .