Skip to main content
Nintex Community Menu Bar
Solved

Multiselect checkbox control - Disable not respected

  • Sep 19, 2023 4:13 PM UTC
  • 1 reply
  • 183 views
  • Translate All

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

});

 

View original

1 reply

Forum|alt.badge.img+1
  • Author
  • Rookie
  • Answer
  • Sep 19, 2023 6:35 PM UTC

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

});

 

Translate