I have a form that has 9 pages,
I want to dynamically remove the 1st page by clicking a button.
so I wrap the entire 1st page in a sub-form,
flowed,
min count 0,
initial count 1.
and the _xx.removeInstance(0) is in the click event of the button.
but when I click it, the 1st page got wiped clean, it doesn't remove the page, it just make the page blank.
Is there a way to get rid of the 1st page completely?
thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Can you send me the form and I will give it a try ...send it to LiveCycle8@gmail.com Please include a description of the issue in the email.
Paul
Views
Replies
Total Likes
You removed the page but you did not remove the Master Page instance....I bekieve that is what the blank page is.
Paul
Views
Replies
Total Likes
how do I remove the Master Page instance?
I don't understand.
Views
Replies
Total Likes
Lets validate that before we go down that path. Can you put a button on your Master Page (outside the content area) and add this javascript code to the click event of the button:
app.alert(this.somExpression)
Now run your form and remove the page as before. Is the button there? If so press it and let me know what is in the dialog box.
paul
Views
Replies
Total Likes
yes the button is there.
the popup says: xfa[0].form[0].DD[0].#pageSet[0].Page1[0].Button2[0]
Views
Replies
Total Likes
Then that prooves that the master page is still there .....not sure if ths will work or not but lets try the command:
DD.pageSet.Page1.instanceManager.removeInstance(0)
Paul
Views
Replies
Total Likes
The otehr thing you can try is instead of removing the instance of your initial page try changing its presence to hidden. This shoudl hide the page and the Master page and omit them from the layout.
Paul
Views
Replies
Total Likes
it's the same result, I still got a blank page.
(setting the presence to hidden also leaves a blank page, same as before)
in the Javascript console, there's a message saying "DD" is not defined... but in the form designer Hierarchy, "DD" is the root of the form.
Views
Replies
Total Likes
Can you send me the form and I will give it a try ...send it to LiveCycle8@gmail.com Please include a description of the issue in the email.
Paul
Views
Replies
Total Likes