based on value tick yes/no button nintex form

  • 13 January 2021
  • 3 replies
  • 182 views

I have one text box whose value if greater than 35,000 then it should automatically tick the radio button.

That radio button is highlighted in yellow.

 

9869i0B61FC14BE4E746F.png

@emha please help on this


3 replies

Badge +11

@RonitSSS You could use the following to get you started: 


txt field Client ID JavaScript variable name jsvar_txt 


Checkbox field Client ID JavaScript variable name jsvar_AA


 


NWF$("#"+jsvar_txt).change(function(){
var moveTO = NWF$("#"+jsvar_txt).val();
switch(moveTO){
case '35000': NWF$("#"+jsvar_AA).prop('checked',true)}
});

 

Where to use this above code?
Badge +11

@RonitSSS  Add the code to the Form Settings  Custom Javascript section.


I changed the code to include greater than or equal to 35000.


 


NWF$("#"+jsvar_txt).change(function(){var moveTO = NWF$("#"+jsvar_txt).val();switch(true){case (moveTO >= 35000): NWF$("#"+jsvar_AA).prop('checked',true)}});

 


 


 


 

Reply