Add Mark all & Unmark all button in suitelet page

  • Initially add sublist with list type in suitelet

 

const sublist = form.addSublist({
            id: 'custpage_details',
            label: 'Details',
            type: serverWidget.SublistType.LIST
          });

 

  • Then add mark all & unmark all button in sublist

 

sublist.addMarkAllButtons();

 

  • Now add a checkbox field in sublist for checking and unchecking the checkbox

 

sublist.addField({
            id: 'sublistcheckbox',
            label: 'Check',
            type: serverWidget.FieldType.CHECKBOX
          });

 

Result

You can now see mark all & unmark all button in your suitelet page

Mark All 
Unmark All

Leave a comment

Your email address will not be published. Required fields are marked *