AnsweredAssumed Answered

set multiple field values based on other field selection

Question asked by kmccool on May 7, 2018
Latest reply on May 23, 2018 by emha

Hi everyone,

I added this question to an existing thread but haven't seen any traction so decided to post a new question.

 

I would like to set the values for five choice fields based on the selection made in a previous choice field. I can get the first field to update but haven't had any luck with the rest. Some of these choice fields allow multiple values. I'm pretty new to JS in Nintex. I've done this a ton in Adobe forms but this seems way different.

 

here's my JS I'm placing in the form settings.

 

Working:

 NWF.FormFiller.Events.RegisterAfterReady(function () {
   NWF$('#'+varBusRole).change(function(){
     if (NWF$('#'+varBusRole).val ("Yes")){
        NWF$('#'+varEnvi) .val ("Both");
     }
   });
});

 

Not working:

 NWF.FormFiller.Events.RegisterAfterReady(function () {
   NWF$('#'+varBusRole).change(function(){
     if (NWF$('#'+varBusRole).val ("Yes")){
        NWF$('#'+varEnvi) .val ("Both");

        NWF$('#'+varSystem) .val ("All");

        NWF$('#'+varLandscape) .val ("Training; Production");  
     }
   });
});

 

Thank you

Kassie

Outcomes