repeating subform creates new subform each time doc is saved and reopened

Avatar

Avatar

Jodi1725

Avatar

Jodi1725

Jodi1725

27-02-2018

This has me stumped! 

I have a doc where I have a subform repeat if you click a button.  When the form is saved to reader every time you open the form it ads another one of these subforms.  It doesnt happen with other subforms in the form, just this one.  It is almost like this one subform is resetting each time you open the form?

But i cannot find where any of the subforms are set up differently?

any ideas?

Thanks in advance!
Jodi

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Jodi1725

Avatar

Jodi1725

Jodi1725

28-02-2018

FOUND IT!  I had the same subform twice! I had hidden one and then when the user decided they wanted it, I copied one over.

Thanks for the help guys!

Jodi

Answers (4)

Answers (4)

Avatar

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
Magus069
MVP

28-02-2018

Hi there,

there could be different reasons for this behaviour...

as MinusZero said, it could be any javascript script in initialize; docready; or anywhere that hold script which would add instances to your subform.

In the other hand, sometimes it's a problem with the software when reading the file. If you have subforms in different places in the form with the same names, it could happen that the software adds a random instance to one of them. By giving them a distinct name it can fix the problem.

Hope this help.

Avatar

Avatar

MinusZero

Avatar

MinusZero

MinusZero

27-02-2018

Check that there is nothing in the initialisation event of the subform or form that is creating a subform.

Avatar

Avatar

Jodi1725

Avatar

Jodi1725

Jodi1725

28-02-2018

I am going to double check the names.  I dont think i have any dups but you never know. It  could be a corrupted subform but not sure
I will keep digging.

Thank you so much for your help!

Jodi

Avatar

Avatar

Jodi1725

Avatar

Jodi1725

Jodi1725

28-02-2018

Thanks Minus Zero !  That was one of the first things I checked.  I am not sure if something isnt corrupted in a subform?

I will keep digging !

Thanks again!