Solved

Multiselect checkbox control - Disable not respected

  • 19 September 2023
  • 1 reply
  • 78 views

Badge +1

On a workflow start form list lookup I would like to check all the options and prevent the user from changing the selections.

The following automatically checks all the boxes in the control when the list lookup filter changes;

NWF$("input[type=checkbox]").click(function() {
 setTimeout( function(){
    NWF$('.mandatory :checkbox').each(function(i){
        NWF$(this).prop("checked", true);    
    }); 
  },200);
});

However I am having an issue with preventing further changes to the list lookup control.

Setting Appearance Enabled=No on the control does not seem to do anything, the checkboxes can still be modified. What is Enabled Y/N supposed to do?

 

 

icon

Best answer by melmes 19 September 2023, 20:35

View original

1 reply

Badge +1

This is a workaround, recheck the boxes after update;

 

NWF$(document).click(function() {

 setTimeout( function(){

    NWF$('.mandatory :checkbox').each(function(i){

        NWF$(this).prop("checked", true);    

    });

    NWF$('.mandatory').trigger('blur');

  },300);

});

 

Reply