how to clear value of widget while change option of select
I have a select-widget that it depends on value of another select-widget. I wrote a js variable that clear value of slave widget and call it in changing of master widget, but it always clear value of slave widget. I just want to clear previous value .
how can clear previous value of slave widget when master widget is changing?
js variable: onSelectLab
$data.selectedlabType = null;
1 - To make sure I understand correctly: your use case is for example to have a master list that store list of USA states and a slave list that store cities of the selected state. Is that correct ?
2 - Also can you confirm that your successfully managed to update cities list when user select a different state?
3 - And finally could you confirm that your current issue is that when user select again the same state as currently select the slave list is update and selection reset but it should not actually modified at all the slave list?