AnsweredAssumed Answered

I use JavaScript in a Nintex form to automatically setup a value in a lookup. It works. After upgrading from 2.8.1 to 2.9.2.10, it stopped working.

Question asked by alexzhu on Aug 2, 2016
Latest reply on Sep 28, 2016 by prashanth.hamse-vishwanath@capgemini.com

Hello,

I use JavaScript in a Nintex form to automatically setup a value in a lookup (drop down list). It works.

 

After the Nintex form is upgraded from 2.8.1 to 2.9.2.10, this piece of the custom JavaScript code stopped working and can't set up the value in the lookup automatically.

 

The code likes below,

 

NWF$(document).ready(function() {

NWF$(document).on('change', '#' + DivisionDirector1, function () {

  var DivisionDirector1idLen = NWF$("#" + DivisionDirector1).find("option").length;

  if (DivisionDirector1idLen === 2) {

   NWF$("#" + DivisionDirector1).val(NWF$("#" + DivisionDirector1).find("option")[1].value);

  NWF$("input#" + DivisionDirector1).val(NWF$("#" + DivisionDirector1).find("option")[1].value);

  }

});

});

 

Do you have any suggestions about it?

 

Thank you,

 

Yong

Outcomes