AnsweredAssumed Answered

Nintex Javascript input value in repeating section

Question asked by jonaroy on May 8, 2018
Latest reply on May 8, 2018 by nmarples

I have Single Line Textbox in a repeating section. This gets calculated through:

 

var calc1= NWF$('#' + vcalc1).val();
var RepSecCounter = NWF$('#' + repseccounter).val();
var tointRepSec = parseInt(RepSecCounter);
var tointRest = parseInt(calc1);

 

var calculation=(tointRest /tointRepSec);

 

else{
NWF$(".your-repeater .nf-repeater-row:not('.nf-repeater-row-hidden')").each(function ()
{
var $row = NWF$(this);
var $input1Val = $row.find(".input1 input").val(calculation);

});

This calculates the value correctally but when i put a calculated value beside it, it doesn't get the true value of it (shows "0"). Only if I keypress a spacebar and enter into the singleline textbox (manually), the calculated value gets the value.

 

I don't want to do it through a simulated keyevent in JS or Jquery trigger function.

 

Is there a way to truely calculate the value of the textbox right?

 

Is it because if this? 

var $input1Val = $row.find(".input1 input").val(calculation);

Outcomes