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

Similar Messages

  • Hide Master Pages dynamically / programmatically

    Hi there,
    does anybody know if there is a way to hide master pages programmatically?
    Situation: I've built a PDF that contains two master pages. First page contains common master data. The second page contains confidential information which must only be visible for special users.
    Is it possible to hide the second master page if a certain interface field is set to a certain value?
    Thanks in advance,
    Eike Menking

    Hi Otto,
    I didn't build the confidential second master page. It came from the customer and I just used the template. The request to hide the second master page depending on the user was not foreseeable for me.
    Additionally: the second master page has a completely different layout than the first one. So until today's morning it was reasonable to use two different master pages.
    In fact I have already been thinking about change the layout to one master page + several subforms. But I don't have a good mind to change the whole layout, think about how to set different headers and footers on the not-first pages and so on.
    So my question is still: Is there a way to hide master pages programmatically?
    Regards, Eike Menking

  • Override/Hide Master Page Footer?

    I am working on my work's SharePoint subsite. The site inherits its master formatting from the main site's master page, and I have no access to the master page whatsoever. If it matters, I also do not have access to SharePoint Designer.
    The master page provides a footer with a "Contact Us" link, and if possible, I would like to hide this footer because the contact info for the subsite differs from that of the parent site. Is there a way to do this with CSS/content editor/etc.
    without editing the master page? (There is no option to create a new master page, either).
    Thank you!

    Thanks again for the fast reply. Yes, I did replace "FooterTitle" however, since I'm still getting familiar with CSS, I could have put the wrong thing for the div title. These are the titles I'm working with:
    <footer id="v5-footer" class="s4-notdlg" role="contentinfo">
    <div id="footer-left" class="s4-socialdata-notif" > </div>
    <div id="footer-middle"> </div>
    <div id="footer-right" class="style1" > </div>
    </footer>
    I tried the footer ID as well as the 2 div IDs. The only time anything seems to happen is when I used the class "s4-notdlg" but then all elements from the master page are hidden rather than just the footer. The “Contact Us” info is listed within the footer-middle
    div. This is what I have been putting (and changing it around to see if any of the IDs might work):
    <style type="text/css">
    .footer-middle
    visibility:hidden
    </style>

  • How to Insert custom master page menubar above suitebar in sharepoint 2013

    Hi,
    I have created my custom master page. But it renders in sequence as Suite link bar, Ribbon bar, Master Page Navigation Menu.
    I want that page to be as master page menubar, suite link bar and then ribbon .
    Please tell me is it possible way to do it?
    cause,ribbon is used often so if there is option when ribbon gets opened hide master page ribbon and when we click on browse in ribbon get the master page again.
    Please, suggest me any way?
    Thanks 

    I think this will help:
    http://academy.bindtuning.com/customize-sharepoint-2013-and-office-365-suite-bar/
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • 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>

  • How hide hr from left navigation (snippet) on custom master page

    Hi,
    I have create a custom master page and add it the left navigation snippet, after making some css customization, I'm unable to hide the <hr> tag.
    This is one of my tries on the .css file
    #DeltaPlaceHolderLeftNavBar > hr {
    clear: both !important;
    border: 0px solid transparent !important;
    height: 0px !important;
    visibility:hidden !important;
    Regards.

    I can't really see the right id in the screenshot, but something like this should work:
    #DeltaPlaceHolderLeftNavBar > hr {
    display:none;
    or
    #sideNaveBox hr {
    display:none;
    maybe even display:none!important;
    Even better trying to remove the hr from the snippet.
    Good luck!

  • How hide ribbon bar for read only users from custom master page.

    Hi,
    I want to hide the ribbon bar for read only users, on my custom master page I put inside of a SharePoint:SPSecurityTrimmedControl this div: <div id="ms-designer-ribbon">, but when I  save the changes the master page does not work
    anymore.
    <!--MS:<SharePoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AddAndCustomizePages">-->
    <div id="ms-designer-ribbon">
    <!--SID:02 {Ribbon}-->
    <!--PS: Start of READ-ONLY PREVIEW (do not modify) --><div class="DefaultContentBlock" style="background:rgb(0, 114, 198); color:white; width:100%; padding:8px; height:64px; ">The SharePoint ribbon will be here when your file is either previewed on or applied to your site.</div><!--PE: End of READ-ONLY PREVIEW -->
    </div>
    <!--ME:</SharePoint:SPSecurityTrimmedControl>-->
    I'll appreciate any suggestions in order to solve this.
    Regards.

    did you close browse and open a fresh session?
    also authericationrestrictions for add & customize people so its more than read...
    check this one
    http://msdn.microsoft.com/en-us/library/jj822366.aspx
    another blog for same stuff:http://spgurunet00.web707.discountasp.net/post/2012/12/13/Hiding-SharePoint-2013-Ribbon-from-Anonymous-Users.aspx
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How can I hide the master page when saving a pdf?

    I designed a form that uses a master page so that I can use headers and footers without changing 10 different pages.  When I save to PDF so the form can be filled out it saves the Master Page as the first page though it has no content.  I have to save the PDF as a static file because it needs to be filled out on the iPad.
    Anyhelp please?

    Hmm,
    Not really. Acrobat must display at least one page of the form. You can set the presence of all of your Design Pages to hidden, but Acrobat will display at least one instance of the Master Page.
    The Master Page is available in LC Designer for objects that you want to repeat on more than one page. Yes, typically this includes header and footer objects.
    If you want to hide all of your main form pages, then include a blank page and display this when hiding all of the other pages. See an example here: http://assure.ly/frjYW5.
    There is also an example here for displaying/hiding pages on a loop: http://assure.ly/kyMP6l.
    Hope that helps,
    Niall

  • Show/hide /print element on multiple master pages

    Hi again,
    I'm continuing to have a problem with something that should be simple but I can't figure out.
    I have a large form.
    On one of the pages there's a button that says 'is there a non disclosure order in place' - radio button with yes/no.
    If the user selects 'yes' I want the words 'non disclosure' to appear on all my pages.
    I've gone about this by creating a text field (non editable) on each master page. It's down at the bottom middle and doesn't interfer with any other element. I've called each of these fields 'nonDis'
    Radzmar and Josh Geurian have been brilliant in helping me but I'm still not quite getting it.
    Back to the page that the radio buttons are on...
    On the click scripting event I have this code:
    var mp = xfa.resolveNodes("#pageSet.CoreMaster[*].nonDis");
    var mp2 = xfa.resolveNodes("#pageSet.COREMASTER2[*].nonDis");
    var mp3 = xfa.resolveNodes("#pageSet.INFORMATIONSHARING[*].nonDis");
    var mp4 = xfa.resolveNodes("#pageSet.CHRONOLOGY[*].nonDis");
    var mp5 = xfa.resolveNodes("#pageSet.NATPRACTICEMODEL[*].nonDis");
    var mp6 = xfa.resolveNodes("#pageSet.ASSESSMENT[*].nonDis");
    var mp7 = xfa.resolveNodes("#pageSet.PLAN[*].nonDis");
    var mp8 = xfa.resolveNodes("#pageSet.REVIEW[*].nonDis");
    var mp9 = xfa.resolveNodes("#pageSet.PLAN2[*].nonDis");
    var mp10 = xfa.resolveNodes("#pageSet.SUMMARYESSENTIALINFO[*].nonDis");
    var mp11 = xfa.resolveNodes("#pageSet.OPEN[*].nonDis");
    for (var i = 0; i < mp10.length; i += 1) {
         mp10.item(i).presence = this.rawValue != "No" ? "visible" : "hidden";
    for (var i = 0; i < mp11.length; i += 1) {
         mp11.item(i).presence = this.rawValue != "No" ? "visible" : "hidden";
    for (var i = 0; i < mp.length; i += 1) {
         mp.item(i).presence = this.rawValue != "No" ? "visible" : "hidden";
    for (var i = 0; i < mp2.length; i += 1) {
         mp2.item(i).presence = this.rawValue != "No" ? "visible" : "hidden";
    for (var i = 0; i < mp3.length; i += 1) {
         mp3.item(i).presence = this.rawValue != "No" ? "visible" : "hidden";
    for (var i = 0; i < mp4.length; i += 1) {
         mp4.item(i).presence = this.rawValue != "No" ? "visible" : "hidden";
    for (var i = 0; i < mp5.length; i += 1) {
         mp5.item(i).presence = this.rawValue != "No" ? "visible" : "hidden";
    for (var i = 0; i < mp6.length; i += 1) {
         mp6.item(i).presence = this.rawValue != "No" ? "visible" : "hidden";
    for (var i = 0; i < mp7.length; i += 1) {
         mp7.item(i).presence = this.rawValue != "No" ? "visible" : "hidden";
    for (var i = 0; i < mp8.length; i += 1) {
         mp8.item(i).presence = this.rawValue != "No" ? "visible" : "hidden";
    for (var i = 0; i < mp9.length; i += 1) {
         mp9.item(i).presence = this.rawValue != "No" ? "visible" : "hidden";
    I've referenced each of the nonDis text fields individually but only the fileds in the master pages: CoreMaster, COREMASTER2, SUMMARYESSENTIALINFO and OPEN work. Despite their ordering in the code they happen to be the first four master pages that are used in order in the document. The actual order is: OPEN, SUMMARYESSENTIALINFO, CoreMaster, COREMASTER2 - these are then followed by INFORMATIONSHARING and contine down the list in order.
    I should mention that each nonDis field appears on the top level of each of the master pages (ie. not in a sub form). I have a feeling it's something perhaps to do with my above code maybe not being succint enough - or there being a better way to write it. It could also perhaps be something to do with the transition between the last page that does work (using COREMASTER2 masterpage) to the first one that doesn't (using INFORMATIONSHARING master page).
    There is also another big issue in that as soon as I click the print button all the nonDis fields revert back to their opening state of invisible and they stay that way despite the radio button remaining selected on 'Yes' - if i toggle yes/no they reappear on screen, but again disappear when printing. I can't let this happen as the form is meant to be printed.
    So please help... this is (I think) the last piece of the puzzle in a project that has taken months. If there's anything else I can provide you with to help please just ask.

    Hi Radzmar,
    Almost there... I think!
    It worked up to a point. As soon as I click/toggle yes/no the nonDis field does indeed appear on each and every page. However as soon as I send to print they all disappear.
    Doing a few tests it's because of several causes (I think). I have a number of tables which can grow when the user adds info (in fact most text fields have this ability). Also, I have text fields full of information for the user which I have scripted to disappear when sending to print (so the printed form contains user data rather than pages of background info). Finally I have a whole section whose content alters radically depending on which department the user belongs to.
    I've noticed that as soon as a page expands to effectively create another page the nonDis field disappears again (the radio button remains selected as 'Yes') - so my gut feeling is that the code above works only if the page count remains the same. Doing more tests I can see that as soon as even one text field adds another page to the form the nonDis disappears again.
    Finally, I've also done a test on my clean form - with only the radio button, the nonDis field (on a master page) and a text field and if I set this box to flowed and expand the height as soon as the field goes beyond the page to create another page the nonDis disappears once again even though the button remains as 'yes'
    Sunil

  • Adding new elements to a Master Page and sharing them to existing pages

    I need to include new navigation elements on the master page
    and I want it to show up on pages I've already created. I've added
    the new elements on a layer of their own which is part of the
    master page, but the Share Layer to Pages... option is dimmed.

    jcbluesman wrote:
    > I'm using CS4, Jim, and here's a link to the .png
    > (
    http://idisk.mac.com/jconstant-Public/deimos.png
    >
    > The 3 tabs in the upper right on the master page are the
    ones I'm trying to
    > share across the existing pages. I created them in PS
    (also CS4), then imported
    > the .psd into this FW document, if that makes any
    difference.
    >
    > Thanks,
    > Jim
    >
    OK there are two related as I see it.
    Each of your pages consists of a solid, opaque bitmap for a
    main image.
    Master Pages, by default, are at the bottom of the layer
    stack. Your
    tabs ARE present, you just can't see them because they are
    covered up by
    the bitmap.
    Assuming you don't have those page images as multi-object
    elements,
    where you can edit the blue backgrounds, there are still two
    things you
    can do, both of which are pretty easy.
    Go into each page and temporarily reduce the opacity of Layer
    1.
    Use the marquee tool to draw a selection around the area of
    the tabs.
    Delete the selection.
    Return the lay back to full opacity.
    OR
    Try dragging the Master page to the top of the layer stack in
    each page.
    Hide or delete the Master page background.
    This option is a little trickier, but I was able to do it.
    Wait for the
    black bar to appear before you release the mouse. You may
    need to try
    this a few times before it works.
    HTH
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    Adobe Community Expert
    http://tinyurl.com/2a7dyp
    .:Author:.
    Lynda.com -
    http://movielibrary.lynda.com/authors/author/?aid=188
    Peachpit Press -
    http://www.peachpit.com/authors/bio.aspx?a=d98ed798-5ef0-45a8-a70d-4b35fa14c9a4
    Layers Magazine -
    http://www.layersmagazine.com/author/jim-babbage

  • Adding javascript to sherpoint master page

    How can i include this in a master page ?  This code should hide the empty lists , but since i noob , i don't now how and where to add this script.
    Thanks
    <script type="text/javascript">
    function HideEmptyWebParts()
    var itemsfound = new Array;
    var elements = document.getElementsByTagName('*');
    for(var i=0;i<elements.length;i++)
    if(elements[i].className == 'ms-vb')
    itemsfound.push(elements[i]);
    for (var i=0;i<itemsfound.length;i++)
    if (itemsfound[i].innerHTML.indexOf("There are no items to show in this view of the")>-1)
    itemsfound[i].parentNode.parentNode.parentNode.parentNode.innerHTML="<div class='ms- vb'>Not enough data to produce a dashboard.</div>";
    _spBodyOnLoadFunctionNames.push("HideEmptyWebParts")
    </script>

    Hi,
    Please upload js file in Sharepoint style library and on master page add the reference of JS like below
    <script type="text/javascript" src="../jQuery/jquery-1.3.2.js"></script>

  • "Oslo.Master" set as the The default Master Page, but when record selected in "List View Web Part" page shifts to the right.

    Hi All,
    I have set "Oslo.Master" as the The default Master Page for the site.   I have a page with a List View web part and an InfoPath Web Part connected.  When the page loads is it displayed correctly.  However, when a record
    is selected and the infopath web part is updated, the content on the page shifts (indents) to the right.
    Is there something I am missing?   Does anyone know how to correct this?
    Thanks in Advance!

    Hi Dwayne,
    I could reproduce this, as a workaround, we can use javascript code as below to hide the element in the following image.
    <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
    <script>
    $(document).ready(function(){
    $('#contentBox').prev().hide();
    </script>
    Thanks
    Daniel Yang
    TechNet Community Support

  • Master page overrides - override more than one page at a time?

    Hi there.
    I have a master page that has many items on it.
    I applied master page to 15 pages.
    I want to override the same two items on each page. Is there a quick way of doing that?
    Any help would be appreciated.

    Schmaltzkopf wrote:
    Rob: Problem is, that these items always end up under another frame.Can I Command-Shift-click if it is behind something else?
    Use layers so you can hide or lock the top objects. if you are not using layers the stacking order will change when you release the MP item, which I assume you don't want.

  • Hide a page at run time

    Hello,
    I'm new to LifeCycle Designer. I'm developing a form which is structured as follows-
    Body page 1 -> Place: on Master Page 1, After : Continue Filling parent
    Body Page 2 -> Place: on Master Page 2, After : Continue Filling parent
    For a certain condition I don't want Body Page 1 to be displayed at all. But still the Body Page 2 should be on Master Page 2 (and should be the 1st page to be displayed).
    I tried following in the form:ready event of Body page 1 (formcalc @ client) -
    if (coverpage_type eq "without_coverpage")
    then
    $.presence = "hidden"
    endif
    But it shows up the 1st page as blank page (does not hide it completely).
    Can you please suggest what should I do to make this happen? Please send me the script code snippet if possible.
    Any help would be appreciated as I've already wasted 2 days trying to find a solution :-(.
    Thanks,
    Vimukta

    An external page break can be triggered by using the Edit button in the Pagination Tab of the Object palette.
            Click on the Edit button, press the PLUS symbol to add the script.
        Below that select the Break radio button either before or after depending on the requirement and then in TO: select the “Top of Next Page”. If you want to display header and footer of the table in the next page s also select the Trailer and Leader sub forms.
    <a href="http://img216.imageshack.us/img216/1807/image002lu3.jpg">screen shot</a>
    or
    To trigger External Page Break:
       Depending on some condition, if you want to trigger a Page break, add the below script to the table subform where the page break has to be trigger. If the hierarchy is as below, then add the below code on the table subform.
               Table
                    Table_Header
                     Table_Data
        Var   recnt  =   $.data.all.length
         For  I  =  0  upto  (  recnt   -  1  )   step 1 do
         If   (  Condition )  then
              $.data<i>.break.after  =  “pageArea”
              $.data<i>.break.startNew  =  “1”
         endif
        endfor
        if you are getting an empty page at the end, add the below script to the table subform.
    $.data[recnt-1].break.after =  “”
    $.data[recnt-1].break.startNew  =  “0”
              This will suppress the blank page, which is generating because of external page break coding.

  • Moved page no longer displays Master Page elements.

    After moving a page in my document the master page elements no longer display on screen or in print. If I move the page to a different location in the document the master displays but if it is in the specific position that it needs to be it will not display. The document has multiple Masters and others do work on the page but the one that I need will not. I've tried deleting the page and adding a new one and that does not fix the problem. I've checked and "Hide Master Items" is not checked. The page in question is in position 48 with F-Master applied. If I move it to position 49 it works, 50, it works, 51, or any other it works. If I apply a different master to the page, it works. If I delete the page, add a new page and apply F-Master it still does not work. The only page that this problem is happening on is page 48.

    try exporting to .idml. See Remove minor corruption by exporting

Maybe you are looking for

  • Run report from Unix prompt

    Hi, for audit reasons we need to run a report again. Therefore a changed the where-clause of the report. Since the report needs to run on our production system and the prodcution-version of the report can not be changed, I need to run the report from

  • Global Parameter

    Hi All, I need to set a global parameter which can be used in all my mappings. How can this be done in OWB ? Is there any way of doing this without the use of a external flat file or temporary table to store the parameter? I sometimes wonder what is

  • Need help with backup files made by HP Recovery.

    So in 2011 I had made a post about a DV9 series HP laptop I had that I felt needed a harddrive. Well the laptop has been sold to a friend of mine and he has since fixed the issue it had. My curent deboggle is trying to deal with the 36GB of data it b

  • Aperture 3 runs slow, should I split my library into more projects?

    Aperture 3.4.5 is running very slow on my 2x 2.4 GHz Quad Core Intel Xeon 5.1 Mac Pro. My Aperture library is 609 GB and I have it on a internal HD with 2.94 TB of room available. I have been using Aperture since it first came out but I have only mad

  • Is there a way to upload files directly to the cloud from bridge cc?

    Is there a way to upload files directly to the cloud from bridge cc? I use bridge to organize my files. It would be a lot easier if I didn't have to drag and drop files into the cc folder, I was hoping that there might be an easier way. thanks,