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

Repeating section duplicate row

Jump to solution

Hello all to my friends,

I'm looking for solution/tips/tricks for my task.

I need to do:

1) Add repeating section to form - check!

2) Add text-box in repeating section form - check!

3) Input value - check;

4) Create button, which duplicate text-box and create a new line with text-box with input value. ( shortly - duplicate previously text-box) - not check..

I tried example ->   - but this is not what I want :/ 

All minds/opinions/suggestion are welcome!

Labels: (1)
Reply
29 Replies
Workflow Hero

Re: Repeating section duplicate row

Jump to solution

does it have to be separate button? couldn't you use OOTB provided 'Add new row' link?

when new repeater row is being added there are generated Before-/After-RepeaterRowAdded events for which you could write your own handler and copy value from previous row.

see  

Reply
Workflow Hero

Re: Repeating section duplicate row

Jump to solution

I would try this option with events!

For another button, I don't know, maybe its  not necessary to add a new button. 

0 Kudos
Reply
Workflow Hero

Re: Repeating section duplicate row

Jump to solution

Can some give an example?  I see the JavaScript  events before/ after filler.  What info would go into it to trigger the copy or duplication?

Reply
Workflow Hero

Re: Repeating section duplicate row

Jump to solution

do you mean example of how to use RegisterRepeaterRowAdded event?

see https://community.nintex.com/message/45769-re-custom-validation-function-not-fired-on-repeating-sect... 

0 Kudos
Reply
Workflow Hero

Re: Repeating section duplicate row

Jump to solution

Hi Mantas Šedys‌, were you able to resolve this?

Reply
Workflow Hero

Re: Repeating section duplicate row

Jump to solution

I want to copy information from one field to another in repeating section row.  What would the function be in nintex?

I am trying to use this to get the output.

function copy_data(val){ var a = document.getElementById(val.id).value  document.getElementById("copy_to").value=a}

0 Kudos
Reply
Highlighted
Workflow Hero

Re: Repeating section duplicate row

Jump to solution

then you might want to look on these threads

Can you duplicate a repeating section in the same form? 

 

both of them show a way how to copy value among controls in repeating section(s)

0 Kudos
Reply
Workflow Hero

Re: Repeating section duplicate row

Jump to solution

Hi Marian,

this project was side-job, so it's still necessary and i'm planning to do it in November! 
Still on focus!

Reply
Workflow Hero

Re: Repeating section duplicate row

Jump to solution

Marian Hatala‌, Alexander Hunt

I'm in progress with this task.

Now I'm using Nintex Forms - Numbering a Repeating Section - Vadim Tabakman  Vadim example, just add some functionality by my needs.

I copy the first textbox in repeatingSection and add it's value to the new textbox:

In text box "Client ID JavaScript variable name" is set pirm.

Code:
var x = document.getElementByID(pirm).value;

and after if()

NWF$(repeaterRow).find('.empty').find('input').val(x);

Maybe You have ideas, how to detect last row and get textbox value from it?
Maybe with Row number?
Looking forward to hear news from You all  

adding full code:

Repeating Code · GitHub 

0 Kudos
Reply