what form version are you on?
In text box of the 2nd repeater - value is 20 - On click of Add new row, i see 10 and 20 alerts
I'd say you should get one another empty alert for 3rd row just being added...
In text box of the 3rd repeater - value is 30 - On click of Add new row, i see 10,20 and 30 alerts
just the same here - one another empty alert for 4th row just being added...
Now i delete 3rd repeater which has value in text box as "30".
so after this action you should have 3 rows in repeating section, with values 10, 20, <empty> (former 4th row) respectively.
On click of Add new row, i see only value 10 in the alert and for 2nd and 3rd alerts it is blank. But it supposed to show 10 and 20
you should get alerts for 10, 20, and 2 two empty values
don't you really get an alert for 20???
can you try following code, repeat the scenario and post output you get on console?
NWF.FormFiller.Events.RegisterRepeaterRowAdded(function (){
var $input1Val;
NWF$(".repeater .nf-repeater-row:not('.nf-repeater-row-hidden')").each(function (idx,elem){
var $row1 = NWF$(this);
var $test = $row1.find(".rep input").val();
console.log('<' + idx + '] '+$test);
});
});
Thank you Marian for your quick reply.
I am on Nintex 2013.
I am not able to see 20 value after deleting any of the repeating row.
Before deleting, it is looping through and showing me all the values from all the rows.
-Usha
try the code and post output as I suggested above.
do you have any custom handler on repeater delete row event?
Hi Marian,
I do not have any custom handler on repeater delete row event.
I modified and ran the below code as per your suggestion and got the below output
Code which i ran :
test1 if IE 9] 9endif]
NWF.FormFiller.Events.RegisterRepeaterRowAdded(function () { NWF$(".repeater .nf-repeater-row").each(function (idx,elem) { var $row1 = NWF$(this); var $test = $row1.find(".sec input").val(); - This gave undefined for all rows var $test1 = $row1.find("#"+secid).val(); - This gave output only for 1st row console.log('/'+idx+']'+$test); console.log('s'+idx+']'+$test1); }); }); |
|
Thanks and Regards,
Usha
what's the control you test with?
is it single line text control (I understood it so within this thread)?
or is it multiline text box as you dealt with in the other thread?
for single line text this should work...
can you post screenshot of control configuration dialog ?