Dynamically Hiding a Master Page

Dear All,
I have two master pages.
Is it possible to hide the master pages dynamically?
If by FormCalc/javascript, kindly embed the code.
Regards,
Prosenjit.

You can hide the master page depending on any condition you have. But there is one clean rule. If your master page doesn't want to get printed then content area of that master page should not contain any data. It means even if you hide all the data in the content area, your whole master page ( including its instances i.e overflown pages) will be hidden.
For that you have to create a text field in your layout and drag and drop it in the content area of the master page which you want to hide. The text field acts like a flag whether or not to hide the master page. If 'X' then hide. Else do not hide. The value of the flag field will be decided while coding in the interface itself based on your condition. Then wrap the data of the content area including your flag field in a sub form. Do not forget to hide the flag field after wrapping it in the sub form because you don't want to show this on the page if that page is displayed by any chance.
Finally click on the whole wrapped sub form. Write below Form calc script in events Initialization, Form Ready and Layout Ready.
Here the HIDEPAGE_FLAG is nothing but your flag field.
if ( $.HIDEPAGE_FLAG == "X" ) then
$.presence = "hidden"
endif
This code hides your whole sub form . It means there will be no data shown in the content area and the Adobe framework doesn't print that specific master page(and all its instances). :-)

Similar Messages

  • Dynamic field in master page header?

    Is it possible to put a dynamic field in a master page header that will either pull from a hidden text field added to each subform (e.g., appID) or pull in the title of the subform itself?  I have a number of variable-sized subforms that need the same header and footer, with the only distinct element being a different number at the top.
    I've been looking for a standard variable or wildcard that can be used to dynamically reference an object at the same level in multiple subforms, but so far have not been able to find what I need.
    Hierarchy:
    form1
         masterpage
         subformApp1
         subformApp2

    Hi Sankar,
    Create on eattribute of type String and bind to title property of page header,
    and your WDDOINIT or any event write code to set title for PG header,
    You are using different buttons, use this code in your buttons and change text.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->Element_context.
      DATA lv_pg TYPE wd_this->Element_context-pg.
    * get element via lead selection
      lo_el_context = wd_context->get_element( ).
      data pg1 type string.
      pg1 = 'selected the record'.
      lv_pg = Pg1.
    * set single attribute
      lo_el_context->set_attribute(
        name =  `PG`
        value = lv_pg ).
    In button 1..
    lv_pg = 'Enter the entries'.
    * set single attribute
      lo_el_context->set_attribute(
        name =  `PG`
        value = lv_pg ).
    Cheers,
    Kris.

  • Dynamic script in master pages

    hi,
    does anybody know how (if possible)  to
    write dynamic script in script editor
    in  master pages.
    thanks in advance,

    ami

  • Hiding a master page based on condition

    Hi All,
    I have created a form which has data on odd pages and some terms and condition on the back pages(even) pages. I am using Adobe Livecycle Designer ES version 8.1.2
    For this I created 4 Master pages.
    FirstPage - Pagination -> Odd/Even - > Odd (front) pages
                                       Placement -> First Page (in Page set)
    Front Page - Pagination -> Odd/Even - > Odd (front) pages
                                       Placement -> Rest of pages
    BackPage - Pagination -> Odd/Even - > Even (Back) pages
                                       Placement -> Rest of pages
    Dummy - Pagination -> Odd/Even - > Blank page
    I dragged the content area of back page on the dummy page.
    This set up works fine for printing.
    I have additional requirement of archiving, emailing and faxing. While sending a email or fax or archiving, the data should be continuous, the 'BackPage' master page should be removed otherwise they show in alternate pages as blank pages even if i set the presence property to 'visible(print only)' .
    Are there any settings which can be done to remove the master pages that are not needed based on a codition. Or can we achieve it through scripting.
    Regards
    Neha

    Hi Otto,
    I will try explaining the scenario...
    The form has to support back side printing and will be archived, sent by mail and by fax.
    The main content of the form will be on the front pages only and on the back side of the first page, the terms and conditions are printed.
    the rest of the back pages remain blank.
    Following the solution in the link below:
    ADOBE: How to print a table only on uneven pages and a text on the back?
    MasterPage -> Object pallete -> Page set -> Printing -> Print on both sides.(choosing this does not allow to set the occurance)
    I created 4 master pages.
    FirstPage -      Pagination -> Odd/Even - > Odd (front) pages
              Placement -> First Page (in Page set)
              Content area -> C1
    Front Page -      Pagination -> Odd/Even - > Odd (front) pages
              Placement -> Rest of pages
              Content area -> C2
    BackPage -      Pagination -> Odd/Even - > Even (Back) pages
              Placement -> Rest of pages
    Dummy -      Pagination -> Odd/Even - > Blank page
              Content area -> C3 (Dragged the content area of BackPage to the dummy page)
    I only have one Body page for now for the content and have put the terms and condition on the 'BackPage' master page itself as a text.
    (If I create a Body Page for the terms and condition (so that I can set its visiblity property) and I try to assign the content area of 'BackPage' (now on dummyPage) the designer shuts down with an error.)
    This works fine for the print set up.
    Now when I save the form, after each front page a blank page is inserted.
    I would like to remove this blank page.
    Is there any other way to have content on front pages only and print certain text only at the back.
    Please help.
    Regards
    Neha

  • Dynamic rollover with master page set

    hi there everyone
    I am having a great time with the master detail page set
    behaviour
    But.........
    when you choose a field to link to the detail page ..... the
    link is colored blue , with no rollover effect
    Is there anyway to insert a rollover effect to that blue
    link..... say so it changes color on mouse over?

    Do you mean just changing the color of the link when you roll
    over it?
    If so, that is done using CSS:
    a:link {
    color: #336699;
    text-decoration: none
    a:visited {
    color: #663399;
    text-decoration: none
    a:hover {
    color: #993399;
    text-decoration: underline
    Just put in the colors according to your taste, underlined or
    not, that
    sort of thing.

  • Adobe form Master page hiding

    Hi Experts,
    I am new for adobe form i have developing one form that is having 2 master pages. if the line items less then 4 i have to display them in 2end page (items displaying second page is working fine but still the 1st page displaying with empty table )in this case the 1st master page should be hide. How to do that please help me on that...

    Hello Krishna Reddy,
    Please find the below links as helpful.
    Dynamically Hiding a Master Page
    Hiding a master page based on condition
    hide a page
    Hide/ Delete of the MASTER Page in adobe forms
    Reward, if helpful.
    Regards,
    Shankar Narayana Reddy Ramigani

  • Master page Dynamic data not getting displayed in consecutive pages

    Hi,
       I have buit a dynamic form which has some dynamic content in master page and a dynamic table in the body page.
    Layout is
    Master page
          Sub form
                 Field1 -TextView
                 Field2 - TextField      bind with Node1--->Attribute1
                 Field2- TextField       bind with Node2---->Attribute2
                Field n - TextField
    all the text fields are bound to various nodes from RFC
    Body Page
             Sub form
                  Table -Grows Dynamically
    When i run the application all the fields are displayed perfectly in the first page.
    when the table data goes more than one page the problem arises
    The Text fields in the master page is  not displaying the values in the second page ,but the text views and the table values are fine.
    The values are getting displayed in both pages if i put any attribute inside the parent node.Is there any property i need to set at node level or subform level?
    Thanks in advance,
    Siva

    Hi
    I Would like to give a suggestion eventhough i don,t have answer to you question.
    Master Page is used for static content as per SAP and Adobe like company logo and  company address footer section and placing  watermarks etc....
    I feel because of the Dynamic behavior in master page it Leeds this problem.
    Regards
    Malli

  • How to change the master page and theme dynamically in sharepoint2013 anonymous site

    hi
    I have to change the master page and theme dynamically in sharepoint2013 anonymous site. i have to show one master page to authenticated user  another master page to anonymous user through code
    Srinivas

    Hi Srinivas,
    According to your description, my understanding is that you want to change the master page and theme dynamically based on the anonymous users or authenticated users.
    Per my knowledge, there is not an OOB way to change the master page and theme dynamically.
    SharePoint is based on Asp.net, as we know Asp.Net request processing is based on pipeline model, so we can delevlop a custom HttpModule to dynamic change the master page based on current logon user profile(using SP Object Model to get).
    Another solution could be to use the SecurityTrimmed control that injects the CSS depending on global user permissions, more information, please refer to
    it.
    Some similar posts for your reference:
    http://social.msdn.microsoft.com/Forums/office/en-US/c2b2d0da-c752-4aea-9c2d-e31a5b1a2988/sharepoint-2010-dynamic-masterpage-based-on-userprofile-property
    http://johanleino.wordpress.com/2011/10/20/using-a-different-master-page-for-authenticated-users-in-sharepoint/
    http://sharepoint.stackexchange.com/questions/21679/how-can-we-use-a-different-masterpage-for-annoymous-and-authenticated-users
    http://sivarajan.me/post/How-to-customize-the-SharePoint-2013-Master-Page-for-Anonymous-Users
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Hide Master Page

    Hi Folks,
    I have a page with fields in design view, which is placed in the content area of the master page.
    Now, i want to hide this page based on a condition. I am following the below steps to hide it.
    I am writing the below code in the design view page (initialization event, form ready event).
    if ( $.HIDEPAGE_FLAG == "X" ) then
    $.presence = "hidden"
    endif
    The fields present in the design view page are hidden, but I am getting a blank page. I am not able to hide this blank page.
    Can you guys tell if i am missing anything here/how do i hide this blank page ?
    Kind Regards,
    Chaitanya

    Hi Chaitanya,
    Instead of hiding the master page, dont trigger it.  Please find below link, which is used for dynamically trigerring master pages using subform property
    Using Subform to trigger Master Pages dynamically
    If you have only one master page and you dont want to trigger it.. while trigerring form from driver program, don't execute it based on the condition and just print a message accordingly.
    Please let me know, if you see any issues in above procedure
    Thanks,
    Rakesh

  • Dynamic Master Page. Hide second master page if items don't overflow on it.

    Hi all,
    I have a custom PO form which requires an extra header on the first page but not on the subsequent pages. I created a master page on which the items can overflow.
    The issue is that the second master page shows irregardless of whether the items overflow or not.
    Is there a way to hide that second master page?
    Thanks,
    Paul

    @ Pradeep Goli:
    The items are grouped by an attribute and each have subtotals, so it is rather difficult to predict when page will overflow.
    @Otto Gold :
    I do have an awkward structure as I couldn't get my deep tables to show as I wanted so I converted the top header of the items into a header.
    Here is how it looks like at the moment.
    -(Master_Pages)
    --PAGE1
    ---Page_Header_1
    ---Page_Header_2
    ---Page_Header_3
    ---Body
    I need to hide the second header on followup pages.
    I tried several things:
    - dynamically re-size content area for followup pages (using only PAGE1). Not possible
    - create a second page, PAGE2 with my desired headers (Page_Header_1, Page_Header_3).  Hard to predict at runtime when overflow will occur
    - I can move the data from Page_Header_3 to the body if I can make it show at the top of every page. Working on this at the moment. Easiest, but I can't get it to work
    The body data with the items looks like this:
    <items_subform>
    -<items_TABLE>
    --<items_BODY>
    ---<items_data_HEADER>
    ---<items_data_BODY>
    ---<items_data_FOOTER>
    --<items_FOOTER>

  • Problem in displaying dynamic table placed in master page

    Hi all,
    I have placed a dynamic table in my master page. When the page overflows the dynamic table is shown only in 1st page. I want this table to be shown in every page. Please help me solve this.
    Regards,
    Devaiah

    hi,
    Thank you all for your reply. But i cannot keep the table in body page as i want this table to be displayed in every page in the header.  Actually i am displaying an address through this table.
    I have moved the content area in master page to center and reduced its size and in the body page i have placed a table which will display the report. When this table overflows to next page all the contents in master page are shown except for the address table in master page. I am not sure whether i am doing it the right way as i am bit new to adobe forms.
    Please let me know where am i going wrong. Also please suggest me some alternative method ( if any ) to display the address in every page if the above method is not feasible.
    Regards,
    Devaiah

  • How to synch values of fields (cbo & text) in Master Pages section in dynamically created pages?

    HI folks,
    I have a requirement for a form that has a common master page with a checkbox and text field in it.   The document is basically a table that dynamically adds rows as the user adds entries.   When the first page is full, a second page is dynamically created and the Master page format (including the checkbox & text field) applied to it. 
    When the user sets the checkbox on one page and/or adds text, all of the checkboxes on all of the dynamically created pages (in the master section) and all of the text boxes need to change to show the same values.   
    However, I can't figure out how to address the fields on the other pages.   The number of pages changes from user to user, so I can't address them with a static reference.
    Does anyone know how to keep these fields in synch?
    Thanks in advance!

    It woudl be easier to show than to explain it ...can you share the file? You can send it to [email protected] Include a description of the issue with your email please.
    Paul

  • Dynamic form with multiple master pages

    I have a 7 pg form that has different data in the footer area. I placed the footer info on it's own separate master page and set the page to the corresponding page numbers. I moved the content area above the footer section so my content can flow to the next page properly. But my problem is since I set the Pagination area to "Place: Top of Page "Page 2" and the rest accordingly, I'm getting an almost blank page with the data from the previous page and the next page pushes to a separate page of its own for every page. Not sure how to make the form flow continuous, this is my first time having to do a form this way. Typically I set the pages when I'm done to "Following Previous" instead of "Top of Next page" in the Pagination Place field for each section and everything works fine then. I've never had to deal with a different master page for each page in the form.
    Any help or suggestion would be greatly appreciated.
    Jim

    If you have 7 pages with different footers, wouldn't it be easier to have the footer also part of the body page instead of Master page.
    Unless you are adding dynamic content at runtime, you can keep the footer in the body page itself. That way you can avoid multiple master pages.
    If you still have issues, you can share the form, so I can have a look at it.
    Thanks
    Srini

  • Custom Master Page - CSS & Dynamic Display

    I have created a css file and attached it using Site Settings> Master Page> Alternate CSS URL.  This works really well and I get the customisations for the global navigation drop-downs as below including colours size etc.
    For my drop-downs, I'm wanting three levels of fly-out.  So, I created a custom master page from seattle.html and even before I made the change to
    MaximumDynamicDisplayLevels="3" - I set this new page as the default.  When I look at the site now, the CSS customisations are not showing (see below).
    The new master page is not applying my css file.  Any ideas why?
      MaximumDynamicDisplayLevels="2"
      MaximumDynamicDisplayLevels="2"

    Thanks for the suggestion but this didn't seem to help.  I've pasted below the whole contents in my .css file.  Anything you can see that is out of place?
    /* --- Global navigation --- */
    #DeltaPlaceHolderMain{
    margin-top:30px;
    .ms-breadcrumb-top{
    background-color:#fff;
    /*font on navigation items*/
    .ms-core-navigation > div > ul.root > li.static a:link, ul.root > li.static a:visited{
    font-family:Arial; font-size:16px !important;
    /* links */
    .ms-core-navigation > div > ul.root{
    padding-top:0px;
    padding-left:0px;
    .ms-core-navigation > div > ul.root > li a{
    #border:1px #fff solid;
    padding:10px 10px 10px 0px;
    font-size:20px;
    .ms-core-navigation .ms-core-listMenu-horizontalBox li.static > .ms-core-listMenu-item{
    margin-right:8px;
    /* links selected */
    .ms-core-navigation > div > ul.root > li.static > ul.static > li.selected a:link, ul.root > li.static > ul.static > li.selected a:visited{
    color:#005DAB; font-weight:bold;
    background-color:#fff;
    /* home link selected */
    .ms-core-navigation div.ms-core-listMenu-horizontalBox > ul.static > li.selected a.selected{
    border:1px transparent solid;
    background-color:#fff
    /* home */
    .ms-core-navigation > div > ul.root > li.static > ul.static{
    margin-left:0px; color:#005DAB;
    /* Hover */
    .ms-breadcrumb-top .ms-core-navigation ul.static > li a:hover{
    border:1px transparent solid;color: #005DAB !important ;
    background-color:#E6EFF7 !important;
    ul.dynamic{
    background: #fff;
    min-width: 250px
    padding: 2px 2px 2px 2px;
    white-space: nowrap;
    word-wrap: normal;
    #zz15_RootAspMenu>li>a>span>span{
    color:#005DAB; font-size:14px;
    #zz15_RootAspMenu>li>span>span>span{
    color:#005DAB;

  • Hiding current page only seems to make invisible or shows view of master page?

    I have a button that is as follows:-
    runs a few validation checks blah blah then ......
    else
    this.resolveNode("Page3").presence = "visible";
    xfa.host.currentPage = 3;
    this.resolveNode("Page1").presence = "hidden";
    So on click it goes to page 3 - that's fine, but it only seems to set the current page to invisible, as it leaves behind a blank page/master page to view?
    I have tried to include
    xfa.layout.relayout();
    but this has no effect.
    If i place a similiar button hiding Page1 outside Page1 then there is no problem, it hides and is taken right out of the form as i am hoping with the button sitting inside page1.

    Rick, thanks for thinking of that setting; however, we've already left "Fade Out on the Last Slide" de-selected, so that's not the issue.
    It seems that on the last slide, the "rest of project" objects endure only for the number of seconds of that slide; for example, if a slide's duration is set to 3 seconds, the "rest of project" objects fade away after 3 seconds; however, nothing else on the page fades away; that is, the images and captions set to "rest of slide" continue to display.
    Jan

Maybe you are looking for

  • 11i EBS XML Publisher Report with Multiple Data Source

    I need to create XML Publisher report in 11i EBS pulling data from another 10.7 EBS Instance as well as 11i EBS in single report. I am not allowed to create extract or use db links. My problem is how to create Data Source Connection using Java Concur

  • GL account and cost center field appearing for Goods issue movt type 201

    Hi SAP Gurus We are trying to post goods issue in ecc6 . The problem is that the GL Account and cost center fields are available fields .The cost center field is logical but why the GL account field is avaiable . How we can grey out the same field as

  • JS for the below simple IF statement pls.?

    Hello, I am new to JavaScript, could you pls. consolidate the below 2 IF statements into only 1 summary IF statement (I mean, put the red IF statement into blue IF statement) my_form:Page1:SunForm1:Middle_Name_text_field ::: Change JavaScript I wrote

  • Clean Way To Prevent Signature Collision Of Mounting VHDX In Parallel PowerShell Scripting

    I have multiple Virtual Machines I am to build from a Sysprepped VHDX. (All this is done automatically via Powershell) For each of these Virtual Machines, I copy this VHDX and create a new one unique to the Virtual Machine. However, I wish to mount e

  • Delay in music streaming?

    So I have a wireless music streaming set-up in my dorm room. However, I get a delay in terms of when I start playing a song to when its playing. Its not a major delay but enough to be a noticable difference.