Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Reset repeating subform or table rows to initial count (more than 1)

zyrusc13762308
Level 3
Level 3

Hello, all;

I have been working on a LiveCycle form that called for a repeating subform that works well (and another project that involves repeating table rows). Then I realized that if the user hit the Reset button, the subform(s) would remain at their current state/however many instances they had added or deleted up to that point.

I followed this post (https://forums.adobe.com/message/6161273#6161273) that managed to get the subforms reset back to 1 instance, but my form's initial state includes 3 instances of the subform that the user begins with. How can I modify the instance code to reset the initial count back to 3 instead of 1?

I appreciate your help.

1 Accepted Solution
Magus069
Correct answer by
Level 10
Level 10

Hi there,

so the forum thread you have mentioned has a link to my Template PDF form which is a bit old.

I kept it only to keep the link alive, but there is a more recent version of that PDF which now handle that kind of stuff.

Technically, to reset instances to the initial count, you only need to call the min property of the instanceManager like the following :

And reset the fields' values properly.

Here is the new link of the PDF,

TemplateDesign_Validation_Reset_Form.pdf - Google Drive

And this is the forum thread in which I keep updates of that PDF.

Validation / Reset Functions, easy to manipulate and to change Forms!!!!

One day I will post a newer version of that PDF but for now this is what I've done.

If you have any question, let me know.

Hope this will help.

View solution in original post

2 Replies
Magus069
Correct answer by
Level 10
Level 10

Hi there,

so the forum thread you have mentioned has a link to my Template PDF form which is a bit old.

I kept it only to keep the link alive, but there is a more recent version of that PDF which now handle that kind of stuff.

Technically, to reset instances to the initial count, you only need to call the min property of the instanceManager like the following :

And reset the fields' values properly.

Here is the new link of the PDF,

TemplateDesign_Validation_Reset_Form.pdf - Google Drive

And this is the forum thread in which I keep updates of that PDF.

Validation / Reset Functions, easy to manipulate and to change Forms!!!!

One day I will post a newer version of that PDF but for now this is what I've done.

If you have any question, let me know.

Hope this will help.

View solution in original post