Clearing all checkboxes from a List Lookup Multiselect control

  • 5 November 2019
  • 1 reply
  • 2 views

Badge +1

I have a List Lookup Multiselect control. This control is in a panel that is hidden/shown based on a drop down. When this dropdown is changed, I need to clear out data so nothing is retained that is not applicable. I have achieved clearing out all other controls, but this multiselect control is not working when using this line in the console:

 

NWF$('input:checkbox').not(this).prop('checked', this.checked);

 

If I put that piece of code on a button in the Client click, it will clear out the checkboxes. But I need to put it inside a change function. Please help! 


1 reply

Badge +1
I actually figured it out. Used a combination of two lines of codes:
NWF$('input:checkbox').not(this).removeAttr('checked');
NWF$('#' + varDatasetNumber).val("");

Reply