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

Similar Messages

  • 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

  • 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

  • Why is the tab being edited at the "master" page always in active state when i am selecting other tabs?

    i am trying to create a basic mobile site with adobe muse. i have created a page with tabbed panels using the the tabbed panel widget and link each tab to its respective pages. let's call my tabs 1, 2 and 3. the linking are fine, but everytime i selected 2 or 3, tab 1 will also be in active state. the selected tab is with reference to the tab that is being edited at the "master" page, i.e, if i am editing tab 2 at the "master" page, tab 2 will always be active when i select tab 1 or 3.
    i do not need this kind of confusion. can anyone help?
    i am using adobe cc. thanks!

    Hi,
    This is an expected behavior  of tabbed panel . When you add a tabbed panel in the master page by default one of the tabs is Active. So whenever you load the page, whichever tab you had selected in the Master page will always be active along with the other tab which you used as a link.
    I would suggest you to use a Menu widget or a composition widget in order to avoid this.
    Regards,
    Rohit Nair

  • Composed Look and System Master Page

    Hi,
    I have been able to create my composed looks, but it keeps resetting our System Master Page setting to match that of the composed look master page setting.
    My Question - Is there a way like an event reciever or something so I can extend the Composed Look list to set different System Master pages? Seems pretty cool to let users choose there own look, but we do not want to change the backend look and feel as
    a few scenarios remove useful key elements when in the backend from in the display if its a team site compared to a published site.
    I cannot use a web feature, or make it part of the site feature because there are multiple composed looks and i need it to apply the system master page when the user chooses "apply this look" or what ever that label is they click.
    Thanks

    I haven't test this but when you hit apply on a composed look the Composed Look list is supposed to be updated.
    I've read that SharePoint updates the 'Current Item' in this list to reflect your newly changed settings. 
    You could try an event receiver on that list for Item Updated on the SPListTemplateType.DesignCatalog template type ID = 124, which is the Compose Look List.
    Found the reference
    http://msdn.microsoft.com/en-us/library/office/jj927175(v=office.15).aspx#section3
    When a user applies a theme in the Change
    the look wizard, the wizard also updates a theme named Current in the Composed Looks
    list and the design gallery. When you apply a theme programmatically, you have to update the Current theme manually. The following example shows how to update the Current theme.
    -tom daly

  • Master Page error

    I am getting following error when i click on "master pages and page layouts' under galleries section in site actions page when i applied custom master page.  Would be a great help if some through some light on this to resolve it. i already tried
    few things like publishing to non publishing template etc... but no success. pls let me know if you face similar issue ever before.
    Cannot find ContentPlaceHolder 'PlaceHolderSearchArea' in the master page '~masterurl/default.master', verify content control's
    ContentPlaceHolderID attribute in the content page.
    Description:
    An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the
    code. Exception Details: System.Web.HttpException: Cannot find ContentPlaceHolder 'PlaceHolderSearchArea' in the master page '~masterurl/default.master', verify content control's ContentPlaceHolderID attribute in the content page

    Check if below can help
    http://webcache.googleusercontent.com/search?q=cache:v5f2aN6-ZWoJ:sharepointserved.blogspot.com/2011/08/cannot-find-contentplaceholder.html+&cd=1&hl=en&ct=clnk&gl=in
    http://blogs.technet.com/b/neerajr/archive/2009/08/17/unable-to-see-the-properties-of-document-library-items-in-the-sharepoint-site-and-getting-unexpected-error-has-occurred.aspx
    Open a SharePoint Designer.
      Open
    the site by clicking File | Open Site options.
      Expand
    the _catalogs folder.
      Expand
    the MasterPage Gallery Folder.
      Right
    click on the custom masterpage you want to work with and select
    Check Out.
      Now
    open the custom Master page again.
      In
    the Find and Replace dialog, enter this : "<asp:contentplaceholder" (without quotes) and
    Clicked on Find All.
      Add
    below code in the custom master page.
     <asp:ContentPlaceHolder id="PlaceHolderLeftNavBar" runat="server"/>
      Saved
    the Custom Master page and "check in" the Custom Master page.
      After
    this we should be able to view the properties of the documents in the document library.
    If this helped you resolve your issue, please mark it Answered

  • Set the pagination property of master page through scripting

    Hi,
    Is it possible to set the Pagination property of a master page via scripting.
    Where and how can this be set if at all possible.
    There are properties like oddOreven etc available. but how can they be used in scripting.
    Regards
    Neha

    Yes you can set the pagination property dynamically in Java Script or formcalc.
    The sample code in Java script as follows:
    xfa.form.form1.pageSet.Page1.oddOrEven = "even";
    The possible values are "any" , " odd" , "even"
    You can write this code in the initialize event.
    Also, the 'Printing' property of the master page set should not Page occurance.It should be either both sides or front side only.

  • Why is the master page default for 2 pages?

    New to ID; Why are the master pages paired? I made several Master pages that consist of one page and they worked fine, so I'm wondering what I'm missing; no doubt there is a reason that the default is for a pair of master pages. So, what;s the reason?
    vasi

    Master pages are paired into spreads when you have "facing pages" checked off in your document setup dialog. This allows for having different information, like mirrored positioning for page numbers, or different running headers, on opposite sides of the spread.
    If you only make single page documents or docs that are printed on only one side you might want to uncheck that box.
    Peter

  • Can you print only pages with a specific master page designation?

    I'm laying out a fairly large technical book using InDesign CS4 and need to print proofs of pages that use a specific custom master page. Rather than scrolling through the Page window and writing down page numbers that use that specific master, i'd like to have a quick way of doing it. If anyone knows of a way to do this by either script or other means, I'd really appreciate the help. Thanks!
    NOTE: Originally posted in general discussion and recommended to scripting forum.

    Straight to the point, methinks. Extensive commenting was free, today.
    // Gather Master Spread names
    masterlist = app.activeDocument.masterSpreads.everyItem().name;
    // Create a simple yet effective dialog
    masterDialog = app.dialogs.add ({name:"Select Your Master",canCancel:true});
    with (masterDialog)
              with (dialogColumns.add())
                        with (dialogRows.add())
                                  listbox1 = dropdowns.add ({stringList:masterlist, selectedIndex:0});
    // Get input
    if (masterDialog.show())
              selectedName = masterlist[listbox1.selectedIndex];
              // Build Print string
              pages = [];
              for (i=0; i<app.activeDocument.pages.length; i++)
                        // What if there is NO master page applied?
                        //          .. then it's NULL and doesn't have a name, that's what
                        if (app.activeDocument.pages[i].appliedMaster != null &&
                                  app.activeDocument.pages[i].appliedMaster.name == selectedName)
                                  pages.push (app.activeDocument.pages[i].name);
              // Make a printable string of it
              printpages = pages.join(",");
              // Feed it to your current Print settings
              app.activeDocument.printPreferences.pageRange = printpages;
              // Show the Print dialog
              app.activeDocument.print (true);

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

  • How do I make a print button that prints "current page" as default

    I am working in Adobe Acrobat Professional 7.0 and have created "print
    buttons" in the pdf document I am working in. The print dialog box has "print all" automatically selected as the current default. How can
    I create buttons that bring the user to the print dialog box automatically selected at "print current page?" I want the user to hit
    the print button and have it automatically print the single page that they are viewing only, so that no one will accidentally print the entire book.
     

    You might also check these forums
    Acrobat Scripting Forum http://forums.adobe.com/community/acrobat/acrobat_scripting
    Acrobat SDK Developer Forum http://forums.adobe.com/community/acrobat/acrobat_scripting

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

  • Custom Master page set as a default on feature activation in Moss

    I've a site in moss. I have created feature in my solution and on feature activation it will set the custom master page
    CustomMaster.master as a default master page and on feature deactivation it will set as a default master page
    default.master.
    The problem I'm facing is that if I'm activation the feature at first time then it will set the CustomMaster.master as a default master page but when I'm deactivate the feature it will remove the
    CustomMaster.master page and module. but when I'm again activate feature at that time it will not create mo1dule and CustomMaster.master in "_catalogs/masterpage/". So, no error was given on feature activation but
    it will give error while I'm accessing my site as a "File Not Found" because
    CustomMaster.master is not created.
    Code of Module.xml file
    <Module Name="Master" Url="_catalogs/masterpage"> <File Path="Master\CustomMaster.master" Url="Master/CustomMaster.master" IgnoreIfAlreadyExists="TRUE" Type="GhostableInLibrary"/> </Module>
    Code of method which is call on feature activation
    public void SetCustomMasterPage(SPFeatureReceiverProperties properties, string MasterPageName)
    try
    #region SetMasterpage
    SPSite siteCollection = properties.Feature.Parent as SPSite;
    if (siteCollection != null)
    foreach (SPWeb web in siteCollection.AllWebs)
    // Get the Site Collection root path to get the master page gallery.
    string siteCollectionRoot = web.Site.RootWeb.Url;
    // Set the Site Master to Custom.master
    var siteMaster = new Uri(siteCollectionRoot + "/_catalogs/masterpage/Master/" + MasterPageName);
    web.CustomMasterUrl = siteMaster.AbsolutePath;
    web.MasterUrl = siteMaster.AbsolutePath;
    // Clear the Alternate CSS
    web.AlternateCssUrl = string.Empty;
    // Save the changes back to the web
    web.Update();
    #endregion
    catch (Exception)
    Code of methods which are call on feature deactivation
    public void SetDefaultMaster(SPFeatureReceiverProperties properties)
    try
    SPSite siteCollection = properties.Feature.Parent as SPSite;
    if (siteCollection != null)
    foreach (SPWeb web in siteCollection.AllWebs)
    // Get the Site Collection root path to get the master page gallery.
    string siteCollectionRoot = web.Site.RootWeb.Url;
    // Set the Site Master to Custom.master
    var siteMaster = new Uri(siteCollectionRoot + "/_catalogs/masterpage/default.master");
    web.CustomMasterUrl = siteMaster.AbsolutePath;
    web.MasterUrl = siteMaster.AbsolutePath;
    // Clear the Alternate CSS
    web.AlternateCssUrl = string.Empty;
    // Save the changes back to the web
    web.Update();
    catch (Exception)
    public void RemoveCustomMasterPage(SPFeatureReceiverProperties properties, string MasterPageName)
    try
    using (SPSite sitecollection = (SPSite)properties.Feature.Parent)
    using (SPWeb web = sitecollection.RootWeb)
    string WebAppRelativePath = sitecollection.ServerRelativeUrl;
    if (!WebAppRelativePath.EndsWith("/"))
    foreach (SPWeb site in sitecollection.AllWebs)
    WebAppRelativePath = site.Url;
    if (!WebAppRelativePath.EndsWith("/"))
    WebAppRelativePath += "/";
    String MasterUrl = WebAppRelativePath + "_catalogs/masterpage/Master/" + MasterPageName;
    SPFile fileUrl1 = site.GetFile(MasterUrl);
    if (fileUrl1 != null)
    SPFolder folder = fileUrl1.ParentFolder;
    fileUrl1.Delete();
    web.Update();
    //attempt to delete the folder if it is now empty
    if (folder.Files.Count < 1)
    folder.Delete();
    catch (Exception)
    Pls guide me for solve this issue.

    Hello Sameer,
    When you are calling "RemoveCustomMasterPage" function?
    Also make below change in web.config file your web application to know the problem:
    1. Open up your sites web.config, and make the standard custom errors edit. You want it to be < customerrors mode="Off"/>
    2. Then, search for the CallStack="false" and change it to CallStack="true", you should find this in the "<safemode>" node.
    3. Find:   <compilation debug="false" />, Replace with: <compilation debug="true" />
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Printing Master Pages

    Hi everyone,
    I have created a set of master pages and would like to print them or make a simple catalog for my reference. Id there a way of printing maseter pages without creating a real page out of the master and can I make size display inside the graphic frames as well as spacing around them on the printout?
    Thanks a lot!!!

    Great - thanks.
    Is there any way of creating a pdf that contains only master pages?
    Thanks again

Maybe you are looking for