cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Copy previous row data into new row in repeated section

Jump to solution

I have a repeating section on my form

When i click on the 'Add new row' action the above data should be copied over to the new row as shown below.

Does nintex forms 2013 provide this option?

0 Kudos
Reply
4 Replies
Workflow Hero

Re: Copy previous row data into new row in repeated section

Jump to solution

have a look on this -  

Reply
Workflow Hero

Re: Copy previous row data into new row in repeated section

Jump to solution

I want the data copied in the next row of the same repeating section but not another control.

0 Kudos
Reply
Highlighted
Workflow Hero

Re: Copy previous row data into new row in repeated section

Jump to solution

the principle described on the link provided could be applied as well to copy row within the same repeating section. you just have to use the same selector for source and destination repeating section.

however, for one single repeating section it could be simplified to following small piece of code

(this works for single line text line which has configured CSS class 'TxtBoxClass')

NWF.FormFiller.Events.RegisterRepeaterRowAdded(function (){
      var currRow = NWF$(arguments[0][0]);
      var prevRow = currRow.prev();
     
      currRow.find('.TxtBoxClass input').val(prevRow.find('.TxtBoxClass input').val()); 
});‍‍‍‍‍‍

‌ copy row‌ duplicate row‌

Reply
Workflow Hero

Re: Copy previous row data into new row in repeated section

Jump to solution

Thanks.

Reply