- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Thanks Niall, really appreciate your help on this. I took your suggestion and sent this to Adobe. They came back with the following, which seems to address the problem:
Mostly a bad case of no hierarchy in the form or the data. You can also get interesting results by doing the following
- open the file in Acrobat
- export the form data to an xml file
- import the exported data back into the form
Same problem – lots of extra bogus Page1.
It’s a combination of the fact that only two of the page subforms are bound and the page count/current page floating fields are also bound.
If you look at the exported data, it’s almost completely flat expect for Page2/Page6 where the data is nested. And the flat data includes multiple CurrentPage and PageCount elements.
So on reloading the data (either by import or by reopening the saved extra page pdf which now contains data), the data merge will generate a new first page for each CurrentPage/PageCount found as a child of the root element.
Can be cured in two ways
- unbind all the CurrentPage/PageCount floating fields – so no CurrentPage/PageCount elements in the data.
- Bind the 4 unbound page subforms – that way the wrapper Page1, Page2, Page3 etc.. elements will trigger the desired correct page creation.
The second is probably preferable. The first only cures it until someone adds two same named fields to different pages and then the same problem could occur.
***********************************************************************************************************************
I have another question with regards to this "delete page" funtionality. On the last two pages of the form I want the user to be able to delete those pages entirely if they are not required. In order to do this I've put the following script in the remove instance/delete page button:
form1.Page5.instanceManager.occur.min="0";
form1.Page5.instanceManager.removeInstance(0);
The binding tab for the form is set with an initial count of 0 and no minimum.
When I open this in reader it allows me to delete the page completely but then when I save and reopen the form, the page that was deleted is there again.
Any guesses on why this might be?
Views
Replies
Total Likes