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

Similar Messages

  • Rearrange pages when printing adobe form with multiple master pages

    Hello!
    Good day to you all.
    I have an issue in regards with printing my adobe form with multiple Master pages. I have 4 master pages:
    1st master page: a
    2nd master page: b
    3rd master page: c
    4th master page: d
    all with different headers and footers all having the same contents (items). I don't have issue with one page content (it just prints 4 pages with different headers and footers). The issue comes out once the items exceed 1 page.
    What happens is that the preview/print shows (example: 3-page item)
    a1-a2-a3-b1-b2-b3-c1-c2-c3-d1-d2-d3.
    What i need is to print these such that all 1st pages of the 4 master page to be printed first, then all the 2nd pages, then all 3rd pages. Please see below:
    a1-b1-c1-d1-a2-b2-c2-d2-a3-b3-c3-d3
    This is because we will be using carbonless copy paper during printing and it's possible that it would be printed on batch jobs. Please suggest ways to do this.
    Thanks a lot in advance!
    Best Regards,
    abap_peer_dangs

    Hi,
    Is that requirement of multiple pages as groups only at the time of print or at print preview also...?
    Can you have a Print button on this screen or you should be using the Abobe toolbar's Print button..?
    Well if this on a click of a button in the form and the requirement is only at the time of print and not on print prieview I can have a JS script which does this...
    Let me know if this suffice, I can try with a local file and send you the script.
    @ Chris: I didn't understand what do you mean by reported, I was eager to hear and learn a solution from you may be a new approach which I am not aware of ...?
    Cheers,
    Sai.

  • Multiple master pages, But only first master page is printed or is shown in pdf preview.

    Hi,
    I have 8 master pages in my adobe form, But when I see the PDF preview or print only the first master page is shown or printed. Can anyone please tell me how to print or pdf preview all the master pages. The contents in the master pages are different.
    Thanks in advance.

    Master pages are used a background for body pages (similar to a background image).
    You should put all your contents on separate body pages instead master pages.

  • 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

  • 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

  • Apply multiple master pages to multiple layers

    I have a document that has multiple layer and I need to apply a different master page to each layer.
    Layers are as follows and in this order:
         USA Pricing
         No Pricing
         Euro Pricing
         Yen Pricing
         and so on.
    I have a master page created for each versions layer. I lock all layers except the USA layer and apply the USA Pricing master to that layer it looks great.
    So I lock that layer and unlock the next layer and apply the applicable master to that layer and so on but, even though the other layers are locked what ever master
    I last applied is the one that sticks to all layers.
    How do you get the master page to stick to each layer without using the Master page override to each layer and making it become part of the page?
    If you do that and then you have a change to the Master page on a specific layer/version you have to edit every page and can not simply make a global change on the applicable master!!
    Thank you in advance for any help that can be given.

    Do you mean that only one master page can be applied per page and that it is automatically applied to all layers of that page?
    "so it sounds like you need to create a new master page with the attributes you need for each layer included in one place."
    I don't understand what you mean by this? I have created multiple master pages that have everything I need on them to be applied to each layer!
    They just don't stick to the individual layer! Maybe it the "included in one place" part of your reply that will work but, I don't understand what you mean by that!

  • Reg : show/hide subforms under buttons in Static page(Java Script)

    Hi All ,
    I am creating Adobe Interactive form(static page). In this page have 3 buttons.For each button one subform is there. I want to show/hide subforms under buttons.
    I am using javascript. Please give me the code for this.
    Thanks
    Risha

    Hi Risha,
    can you explain your question like do u have some condtions to show or hide the subform? OR if u click
    button you want to show the subform and by default subform should be hidden something like this?
    Normally for showing the subfrom on click of the button: (By default make your subform invisible from its properties).
    Select the button and in the click event select java script option and write the following code:
    Subform.presence = "visible";
    (*you have to give full path of the subform instead of only subform name).
    With Regards,
    Ravi

  • Show/Hide AP Element Works Once

    I have an element on a page that is hidden.  I use a picture thumbnail to reveal it the element when clicked.  In the element I have a detail photo and some text that hides the element.  Once I have revealed and then re-hidden the element, I can no longer reveal it again.  Any ideas why this is.  Please let me know if you need any further info to diagnose the problem.
    Thanks,
    Pharaoh

    Hi,
    look here this could be a(n other) solution for you:
    http://www.d.umn.edu/itss/support/Training/Online/DreamweaverIntro4/example2.htm
    Hans-G.

  • Printing resets textfield on master page to default

    I have a textfield at the top of my form where the user enters the audit number. I want that number to appear on all pages. When the user enters the number, saves the form and then prints the form - the textfield resets back the default textfield setting when printing. How do I prevet this?

    You can try something like this...
    Place a text field in the Master page..
    In the initialize event of the Text Field, access the XML node and display the value in it..
    TextField1.rawValue = xfa.resolveNode("$record.COMMAND.sendApplicationInformationRequest.TypeName").value;
    In the above example COMMAND is the root node of the XML and the TypeName is the tag that contains value.
    Try this approach, if you still have issues, send the XML to [email protected] so I can give you the right syntax. While sending, mention the tag name..
    Thanks
    Srini

  • Multiple Master Pages - how to apply to forms?

    Hello!
    I need to build a form with two pages, one with portrait orientation and the other one with landscape orientation.
    So I created two Master Pagers, one for each, with correspondent orientations.
    The first page is ok, following the portrait Master Page definitions. Now I want to apply the landscape Master Page definitions on the second page - I haven't found where to do it.
    Please, where do I change this?
    Thank you very much for any hints.
    Marcos

    HI Niall,
    I'm glad to have found this thread as I have some forms which need 3 Master pages and something is wrong but I can't figure it out.
    The 1st Master Page is portrait and will be used for the first two pages of content.
    The 2nd Master Page is landscaped and will be used for the third page (or more) content.
    The 3rd Master page has 'fixed' Revision History content and just is what it is, and is ALWAYs last on every form we do.
    So I was able to get the first two content pages on the first Master page (portrait) and it looks fine.
    So far, so good.
    Now for the problem:
    The next "content" page is landscaped, but I cannot put content on it. In fact, if I click on that page, the Master Page is highlighted.
    If I delete it, the 2nd Master Page is deleted as well.
    Moving on:
    The next page does use the appropriate landscaped Master Page and looks good.
    The final page is the Rev history page, as expected.
    NOTES: on the difficult page I have tried to use the information you have here but it doesn't work as it appears to be a Master Page.
    How does a master page show up in the Design View and not allow content to be placed on it? How can I remove it?
    Thanks an awful lot - hope your weather is better than ours!
    Slan!

  • Some elements on the master page move from page to page. What did I do wrong?

    I can't figure out how to solve my problem.
    The location of the logo and menu (which are on my master page) is correct on the homepage: http://psychocegep.com/
    However, the those elements move when I go on another page. It is even more annoying on this page : http://psychocegep.com/matiere.html
    In fact, the whole page goes down and it creates a blank space at the very top.
    The problem does not occur on my iMac computer, but is present on every other computer.
    What should I do to keep the logo and the menu static?

    Hello,
    Could you please check if it happens when you preview the site in a web browser via Adobe Muse?
    Do you have Menu added on a Master page or on the page itself?
    Please check if some of the element on the page (http://psychocegep.com/matiere.html) has been marked as footer which might be creating issues.
    Regards,
    Sachin

  • Multiple Master pages in a form

    Hi All,
    I am developing a 10 paged form in adobe LiveCycle Designer. I need the first page to have the page number as 1of 1, Second to 6th page to have numbers 1of 5, 2 of 5...5 of 5,Seventh page to have no number and the last three pages to have numbers 1of 3, 2 of 3 and 3 of 3.
    Please help me in doing this with MASTER PAGES. All replies are appreciated.
    Thanks in Advance,
    Rajesh Ravindran

    Place a text field on master page and place the below script on the event of layout ready. This will work for exact 10 pages (as per ur requirement), we can change for any pages, but need to know the page count before.
    //Page 1
    if(xfa.layout.page(this) == 1){
    this.rawValue
    = xfa.layout.page(this) + " of " + 1;}
    //Page 2 - 6
    if((xfa.layout.page(this) > 1) && (xfa.layout.page(this) <= 6)) {
    this.rawValue
    = (xfa.layout.page(this)-1) + " of " + (xfa.layout.pageCount()-5);}
    //Page 7
    if(xfa.layout.page(this) == 7){
    this.rawValue
    = "";}
    //Page 8-10
    if(xfa.layout.page(this) > 7) {
    this.rawValue
    = (xfa.layout.page(this)-7) + " of " + (xfa.layout.pageCount()-7);}
    Hope this will help.
    Raghu.

  • Show / Hide form elements

    Hi...
    I just want to know, how I can create the following in
    Dreamweaver CS3:
    Eg: I have 4 form elements: Active, Name, Surname, Comments
    Now. When viewing the page containing the form, it should
    only display the Active Tickbox. WHEN you have ticked the Active
    tickbox, it should then UNHIDE the Name, Surname and Comments
    elements.
    Any Ideas how it could be done using Dreamweaver...? Even if
    it can be done like except hiding elements, just make the other
    elements "locked" or grayed out...?
    Thanx...

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="MSSmartTagsPreventParsing" content="TRUE"
    />
    <meta name="robots" content="index,follow" />
    <script type="text/javascript">
    <!--
    function MM_changeProp(objId,x,theProp,theValue) { //v9.0
    var obj = null; with (document){ if (getElementById)
    obj = getElementById(objId); }
    if (obj){
    if (theValue == true || theValue == false)
    eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
    //-->
    </script>
    <style type="text/css">
    #foo { display:none; }
    </style>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="">
    <p>
    <label for="checkme">Want more?</label>
    <input name="checkme" type="checkbox" id="checkme"
    onclick="MM_changeProp('foo','','display','block','DIV')"
    />
    </p>
    <div id="foo"><p>
    <label for="field1">Thing One</label>
    <input type="text" name="field1" id="field1" />
    </p>
    <p>
    <label for="field2">Thing Two</label>
    <input type="text" name="field2" id="field2" />
    </p></div>
    </form>
    </body>
    </html>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "RadeonX" <[email protected]> wrote in
    message
    news:ge8tl2$oi8$[email protected]..
    > OK... Is there maybe a step-by-step instruction or an
    Example which I can
    > use to help me, as I am rather new with this kind of
    stuff...? Thanx...

  • Master Page elements not showing up on top...

    I'm newer to ID and the industry in general...with no prior experience.  Running CS6 on Windows 8.1.  I have existing documents that were shared with me where the master page elements always appear on top, meaning on top of pages or items placed in a document.  Those items are surrounded by a red dotted line, and I cannot edit those in any way, shape or form.  I am working in a new document and all my master page elements have a blue dotted line and do not show up on top of anything no matter what I do and the option to Arrange isn't there.  I know I must be missing a really simple step, but in all of the videos and tutorials I've read and watched, this has never been addressed.  What am I missing?  See images below (added the green box to show an item on the page showing up on top of the master page stuff.)  Thank you in advance for any help you can offer.

    The color is derived from the color code for the layer. You’ll need to go to the master page to edit the items.
    If you that new to ID none of this is intuitive. First, I recommend that you buy Sandee Cohen’s Visual Quick Start Guide. It’s the be beginner book on the market: http://amzn.to/14JHq54
    You may also benefit from some quality time on Lynda.com. This link will get you a one week free trial: http://lynda.com/trial/BobLevine

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

Maybe you are looking for