Issue with repeater section in Nintex forms

  • 27 December 2017
  • 5 replies
  • 14 views

Badge +6

Hi Team

I observed below issue with repeater section when deleting and adding new row.

Below is my jQuery [if IE 9]  [endif]

 NWF.FormFiller.Events.RegisterRepeaterRowAdded(function ()
{
 var $input1Val; 
  NWF$(".repeater .nf-repeater-row:not('.nf-repeater-row-hidden')").each(function ()
  {
   var $row1 = NWF$(this);
   var $test =  $row1.find(".rep input").val();
   alert($test);
    }); 
});

For the first few times (before deleting) when i clicked on "Add new row",  i could see that the i get alert of all the values added in the text box.

When i delete one of the repeating row and click on "add new row", i expect that all the existing values in all rows should be looped through and get in alert box which is not happening strangly.

Eg: 

In text box 1 repeater i have value 10

In text box of the 2nd repeater - value is 20 - On click of Add new row, i see 10 and 20 alerts

In text box of the 3rd repeater - value is 30 - On click of Add new row, i see 10,20 and 30 alerts

Now i delete 3rd repeater which has value in text box as "30". - 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

Please help.

Usha


5 replies

Userlevel 5
Badge +14

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);
  });
});
Badge +6

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

Userlevel 5
Badge +14

try the code and post output as I suggested above.

do you have any custom handler on repeater delete row event?

Badge +6

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

211813_pastedImage_1.png

Code which i ran :

test1     [if IE 9]  [endif] 

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('['+idx+']'+$test1);
   
         
         }); 
});

Thanks and Regards,

Usha

Userlevel 5
Badge +14

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 ?

Reply