Expand my Community achievements bar.

Hiding a master page

Avatar

Former Community Member
I have a form with 3 master pages and 3 body pages. each body page is laid out on diff master page. I also have an option in the form that can hide/show various body pages using check boxes. The body pages are hiding fine. but I am not able to hide the master page. I see a blank page in its place.

Here is the layout -



Body Page 1 - on Master Page 1

Body Page 2 - on Master Page 2

Body Page 3 - on Master Page 3



On choosing the option to remove the instance of Body page 2, the form looks like this -



Body Page 1

Blank Page

Body Page 3



Can anyone help with hiding/removing instance of Master page 2.



Thanks!
1 Reply

Avatar

Level 5
By Default all Master Pages are set to display at least One time. However you can set min occurrence value to 0 in Restrict page occurrence in object pallet. Also you may have to use xfa.layout.relayout() after you complete all other actions that hide the body page layout.