Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Scripting the Add Instance Below Button

Avatar

Level 2

I have looked on help and throughout the forums, but am still unable to get this script to work.  What I need is if we have Row 1, Row 2, Row 3 and need to go back and insert a row between Rows 2 & 3, we can do this.  The script that I used is off LiveCycle Help, but I have seen the same script in the forums.  I am missing something, but have been unable to upload an example to show me what I am doing wrong.  Please help.  Attached is the row I am working on.

1 Reply

Avatar

Level 2

Got it, for anyone else that wants to know:

Subform.insertInstance(this.parent.index + 1);

Couldn't have been easier.