Skip to main content
Nintex Community Menu Bar

based on value tick yes/no button nintex form

  • January 13, 2021
  • 3 replies
  • 214 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

Forum|alt.badge.img+11
  • Scholar
  • January 14, 2021

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

 


  • Author
  • January 15, 2021
Where to use this above code?

Forum|alt.badge.img+11
  • Scholar
  • January 15, 2021

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