Dissable choice selection with JavaScript

  • 18 March 2022
  • 2 replies
  • 9 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

Userlevel 5
Badge +20

@cecilia-penha Could you please try assist here?

Userlevel 3
Badge +8

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

Reply