Java script not working in Version 2.9.3.0

  • 31 October 2016
  • 1 reply
  • 0 views

Badge +10

Hi All,

My java script function was working on Nintex forms 2.9.0.0 , we have updated the nintex with recent release 2.9.3.0

Here is the function to set value to the drop down list 

function SetValue (jvarCtl, CtlValue)
{

var yourControl = NWF$("#"+ jvarCtl);
var value = yourControl.find("option[title='" + CtlValue + "']").attr("value");
yourControl.val(CtlValue);
yourControl.parent().find("input").val(value);
NWF.FormFiller.Functions.ProcessOnChange(yourControl);
}

jvarCtl is the control to set the value to and CtlValue is the value to set.


1 reply

Badge +10

The above code sets the value to the control internally , but is not displaying on the screen.

when I try below code after above function. The alert is showing the correct value.

var Proc = NWF$('#' + jvarCtl).val();
alert(Proc);

Any input?

Reply