Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

addInstance() script not working

Avatar

Level 10

I need to add instance of a Subform.

The subform is contained within a flowed subform.

Its just a basic script but its not working.

See the attached sample PDF.

Any help is appreciated..

Nith

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

The first parameter for the insertInstance is required.

The main issue is that the subform2 that you are repeating is not set in the Object/Binding tab. Tick "Repeating Subform for each Data Item".

That should work,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

The first parameter for the insertInstance is required.

The main issue is that the subform2 that you are repeating is not set in the Object/Binding tab. Tick "Repeating Subform for each Data Item".

That should work,

Niall

Avatar

Level 10

Many Thanks Niall, it works..

Thanks & Regards,

Nith