Skip to Content
author's profile photo Former Member
Former Member

Hide a master page based on condition

Hi All,

I have 2 master pages M1 and M2 in my adobe form, I want any one of the master page to be displayed based on a field in my master pages.

IF A NE null




I tried many options given in many forums, but was not success. Read in many forums that Master page cannot be hidden also.

Kindly provide me solution and would be highly appreciated.

Thanks in advance


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on May 23, 2013 at 06:35 PM

    Hi Vadivu,

    I guess, we cannot hide a master page. But we could trigger different master pages based on our conditions. It is a bit of work around.

    1. Create a two tables say itab_t1 and itab_t2.

    2. if A is not initial fill itab_t1 with one row else fill itab_t2 with one row. You could place this code either in code initialization or driver program

    3. Create two master pages, say m1 and m2.

    4. In design view. create a sub-form1 and bind it to itab_t1 and set repeat sub-form to max 1 row. (remove min = 1). create another sub-form1 and bind it itab_t2 and set repeat sub-form to max 1 row and remove min = 1.

    5. In subform1, in pagination tab, place it on page 'm1'. and subform 2, in pagination tab, place it on page m2.

    6. Now populate the fields which you want in sub-form1 and sub-form2 accordingly.

    7. According to your code, written in code initialization, only one sub-form will be triggered so required master page will be displayed.

    I just tried to use the property of sub-form.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.