AnsweredAssumed Answered

Rule dont apply after update value with javascript

Question asked by rm@nexplore.ch on Mar 23, 2015
Latest reply on Aug 14, 2018 by bimi82

Hi,

 

I use javascript to update a value of a textfield (txtStepID) in my Nintex Form. There are several formatting rules on different controls triggered on this value. Since upgrading to nintex Form from V 2.4.0.0 to 2.5.0.0 the rule is not recognized anymore. I see the value changes due to the step but the rule just don't fire. If I change the field value manually in the textbox the rule is working perfectly.

 

Here is the javascript I use to update my textbox value:

function goNext() {

    var txtStep = NWF$("#" + txtStepID);

    var stepNumber = txtStep.val();

    stepNumber++;

    goStep(stepNumber);

}

function goPrev() {

    var txtStep = NWF$("#" + txtStepID);

    var stepNumber = txtStep.val();

    stepNumber--;

    goStep(stepNumber);

}

function goStep(stepNumber) {

    var txtStep = NWF$("#" + txtStepID);

    txtStep.val(stepNumber);

    txtStep.trigger("change");

}

Outcomes