Skip to main content
Nintex Community Menu Bar
Solved

Multiselect checkbox control - Disable not respected

  • September 19, 2023
  • 1 reply
  • 151 views

Forum|alt.badge.img+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?

 

 

Best answer by melmes

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);

});

 

1 reply

Forum|alt.badge.img+1
  • Author
  • Rookie
  • Answer
  • September 19, 2023

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);

});