AnsweredAssumed Answered

Javascript for Selectall and Clearall on Choice control

Question asked by agannarapu@itsmarta on Oct 18, 2016
Latest reply on Apr 17, 2017 by emha

Select Checkbox(bool) should automatically select all values in choice(multiple) control. I do not want to specify individual values in choice(Multiple-selection) field control.

 

Individual values  it is working fine.  here is my code snippet :

 

NWF$('#'+Respose).find(':checkbox[value=\'SharePoint\']').attr('checked', true);

 

 

Here is my code.

  

ControlName(Response) is my Multi-selection control ID.

 

 UncheckAll(ControlName){

NWF$('#'+ControlName).prop('checked',false);

}

SelectAll(ControlName){

NWF$('#'+ControlName).prop('checked',true);

}

Does any once know how to clear all  and select all items in choice field control.

Outcomes