Deleted subform keeps reappearing after PDF is save and reopened

Avatar

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Geckoz100
Level 3

31-03-2016

I'm using a script to delete subforms.  It works while the PDF is open -- the subform disappears. But after saving and closing the document, then reopening it, the deleted subform reappears.  I duplicated line 2 and I get an error on it because the subform is gone and can no longer be deleted, so I know it's working.  What am I missing?


form1.Subform.occur.min = "0";


form1._Subform.removeInstance(form1.Subform.index);


I have also tried this and it has the same result:


form1.Subform.occur.min = "0";


form1._Subform.removeInstance(0);


Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Geckoz100
Level 3

01-04-2016

The script in my original post is in a radio button, which I have in the change event.  I ended up having to put the same thing into the Doc Ready event to make the removed subforms "stay" removed.  I still hope someone can shed some light on this.