Skip to main content
Nintex Community Menu Bar

Dissable choice selection with JavaScript

  • March 18, 2022
  • 2 replies
  • 13 views

Hi All! 

 

I would like to dissable some choice fields with JS as below, but its not working, dont know why.

Do I miss something that needs to be enabled or entered somewhere?

 

Forms Settings / Custom Javascript


NWF.FormFiller.Events.RegisterAfterReady(function(){
NWF$('.ConfidenceLevel table.nf-choice-radio input[value="CL4"]').prop('disabled',true);
})

 

Control Settings / Formatting / CSS class: ConfidenceLevel

 

 

2 replies

MillaZ
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • March 22, 2022

@cecilia-penha Could you please try assist here?


cecilia-penha
Nintex Employee
Forum|alt.badge.img+8
  • Nintex Employee
  • March 22, 2022

Hi @RobertP,

 

Your selector is probably not valid.

 

Could you try the following :

NWF.FormFiller.Events.RegisterAfterReady(function(){
NWF$('.ConfidenceLevel.nf-choice-radio input[value="CL4"]').prop('disabled',true);
})