Echoing entered field in master pages/headers

I'm creating a form that needs to have some data entered on the first page (a patient name) which then gets echoed to all of the subsequent pages on the form in case the pages get separated.
I have two master pages: one for the first page, with the company logo, and one for subsequent pages, which has the same logo but also includes a read-only field for the redisplay of the patient name. The patient name is entered on the first page, and a script that runs on change populates the read-only field in the second master page with the value of the entered field.
The second and following pages use the "subsequent page" master page.
All of that works, but the odd thing is that the value of the field only displays on the FIRST iteration of the subsequent page. In other words, the value entered on page 1 displays correctly on page 2, but on pages 3 and forward it doesn't show. The field is there, but it's empty.
I assumed that setting a read-only field's data within a master page / header would cause it to display on all pages that use that master page, but it seems to only get displayed on the first such page.
How do I make the field entered/filled out on the first page echo on all subsequent pages, in the header?
Thanks for any tips.

The reason why the 1st one is the only one filled is that each field has a unique name .....soyou woudl have to determine how many pages you have and write a for loop to place th eentered value into each of the fields (the page number is part of the Expression that is used to make the field unique). You can see the unique expression by adding  the javascript comand app.alert(this.somExpression) in the enter event. Now each time you enter the field it will display the somExpression and you can see the difference in the field name (it will be a page occurance number).
OR......
If you set the binding to global then all fields that have the same name will get the same value.
Hope that helps
Paul

Similar Messages

  • Changing font/-size of a text field on master-pages not possible? (field prop)

    Hi,
    I would like to change the font and font-size of a textfield on a master page.
    I wonder if I do anything wrong, because the font-options (size, font etc.) are simple greyed out / not avaliable, when I click on my text field.
    It seems, there is any way to customize the font-properties of a textfield (only) on master-page.
    Well I guess it would work with java script in init-event ...  but really, why the hell it should not be possible simply to use the properties/text properties?!
    Please correct me if I am wrong. Do I do anything wrong or is it really not possible to customize font of a text field on master pages?

    Hi,
    I was just about to post, that I figured it out.
    Actually, I use Livecycle Designer in SAP (transaction SFP). There seems to be a bug (one of hundrets by the way).
    If I click on a field, that does not have text-property e.g. subform, text-option menu greys out.
    Afterwards it stay this way until I click/doubleclick into a simple text (not text field). From that moment on, text/font-option menu is available again, until I click on something without text. => So pay attention and click wisely
    coming soon: "SAP meets Livecycle Designer - a (Bug)Lovestory", hardcover 124 Pages. ; )
    by the way: SAP does not sopport interactive forms higher than Reader 8.1. Its statement "8.1 is fine enough for everything you need in a SAP/Adobe Interactive Form". So beware of using XFA higher than in 8.1. sad, but true ...

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

  • Repeating entered field on subsequent pages as header or footer

    I have created a static form that in case they print the form and the subsequent pages get separated they would be able to identify by the last name appearing on all the pages in either the header or footer.  Any help?

    Here is an example in the header...
    // form1.#pageSet[0].Page1.name::calculate - (JavaScript, client)
    this.rawValue = form1.page1.subform1.lastName.rawValue;
    Steve

  • Problems when I copy a text from master page field to body page field

    Hello
    I am developing a electronic form and I have experimented a strange bebehavior.
    When I try to copy a rawvalue of listbox field from master page to textbox field in body page, this works randomly.
    I have this code in the validation of the master page field
    --------------------begin code---------------------
    if (this.rawValue != null && this.rawValue != "")
    if (xfa.form.myform.mysubform.mytextfield.rawValue != this.rawvalue)
    xfa.form.myform.mysubform.mytextfield.rawValue = this.rawValue;
    --------------------end code---------------------
    Somebody know what is wrong?
    I am very confused.
    Thanks a lot for your help.
    Hosting Association
    The low cost quality hosting
    http://www.hostingassociation.biz

    Extra code is one of the pitfalls of using WYSIWYG cutting and pasting,
    and using styling in general.
    So while it may be interesting to try to reduce the amount of code, there
    probably won't be any direct approach without extra steps to get you what
    you want with bare bones code that appears as you want it to or at least acceptable.
    I guess you might have to take a screen image, clip the relevant portion, since
    you can only attach an image file here not a text file.
    Posting a screen shot
    * http://kb.mozillazine.org/Posting_a_screenshot_on_the_forum#Windows

  • FI-AP  Add  field of master data vendor for reporting of vendor

    Hi,
    I have to add the field LFA1-BRSCH (industry) into layout output reports for suppliers:
    S_ALR_87012082
    S_ALR_87012093
    S_ALR_87012103
    I have already read the note 984305 - Line Item: Definition of special fields (T021S), but does not help me because it does not allow to enter fields of master data vendor
    But  I 've found the extension RFKRRANZ, but I do not know what to enter as a code.
    Has anyone ever used or even if it is used on your systems could send me the code?
    Any assistance would be greatly appreciated.
    Eric

    Hi,
    if someone can affect, the answer SAP  such enhancement is not possible for teh reports:
    S_ALR_87012082
    S_ALR_87012093
    S_ALR_87012103
    But only transactions: FBL1N/FBL3N/FBL5N or, as of ERP2004, FAGLL03.
    Best Regards.
    Eric

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

  • Repeat Text Field Value on Master page

    This might be a really simple question. I have a form with two master pages. The second is applied to all but the first page. On the second master page I have a text field that I populate with user entered data from a text field. I want this value to show on all pages after the first page (page 2 to n). It shows up with the value on page 2, but all the rest have a blank value. Do I need to script something to make it repeat for all pages? Any help would be appreciated.

    The simpliest method would be:
    Under the Object tab, select Binding, and change the Default Binding to Global. The TextFields you create must have the same name, and Global binding will populate all the fields.

  • How do I populate my date fields placed on Master Page for multiple pages?

    I have a dynamic form with flowing fields. I inserted date fields using the Master Pages tab within Adobe LiveCycle Designer ES2, Windows 7 OS. I have only 1 Master Page. Everything on the form is working properly, except when I have multiple pages, the date fields are blank on all but the first page. One of the date fields has javascript in the exit event to calculate the second date field. I can manually edit the subsequent page(s) date fields, but I don't want the end user to have to do that. I want the date fields on the new pages to equal the date fields on the first pages. Below is my output with notes to provide a visualization of what I'm looking for.
    Many thanks in advance for anyone who can help me with this issue!
    Caroline

    Hey Mandy,
    Yes, both date fields are on the Master Page. The first one is set to "User entered - Required" and the second to "Calculated - User Can Override"
    And that's right, I used your script to calculate the second date field. The only thing I changed was the field name, and used 6 days instead since I wanted the calendar days to only run a full week, like start on a Monday and end on Sunday.
    Thx,
    C

  • Fields on the master page - NOT saving in Reader!

    I have forms that I've setup through Designer 7.1 and enabled through Acrobat 8. I'm currently using Reader 8 to open and fill in the forms. The fields that are on the master page (i.e., "Page ___ of ___" footer) DO NOT save, either in Reader 7 or 8. I can type in my info and it shows up just fine in the PDF preview pane (nothing seems to be blocking it and it is appropriately setup within a subform). I'm hoping this doesn't mean I have to go through all 800+ of my forms and redo what I've already created....

    Check the binding tab for the fields. They may not be bound. By default, when you add a field to a master page, it is not bound (i.e. default binding is "none").

  • 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

  • Adobe LiveCycle Access Field in Subform inside Master Page

    Hello,
    I have a Dynamic PDF document created in LiveCycle 8.2 with the following structure
    topmostSubform
              (Master Pages)
                      Page1
                            sfHeader
                                   txtName
    When I try to assign the value, using C# language, to the txtName I'm getting a null exception.
    It looks that my code can't recognize the hierarchy structure.
    I tried the following options and none of them worked
    topmostSubform[0].#pageSet[0].Page1[0].sfHeader[0].txtName[0]"
    topmostSubform[0].pageSet[0].Page1[0].sfHeader[0].txtName[0]"
    topmostSubform[0].Page1[0].sfHeader[0].txtName[0]"
    Any advise will be truly appreciated!
    Thank you.

    I'm using Dynamic PDF Merger by ceTe Software.
    Unfortunately this product is not good to work with dynamic pdf forms.
    I also tried to use iTextSharp. So far no luck.
    I would truly appreciate if you can give me any other suggestions.
    I also wonder if there is an option to have a dynamic pdf files it should be the way to map data to the fields on this form?
    Thank a lot for your help!

  • Master Pages fields visible after reopening the PDF.

    I have a subform on the Master page, I want to hide them upon click of a button.
    For the first time when I click on the button, the subform gets hidden. But, when I re-open(Reader Extended) the form in the Adobe Reader the subform gets visible.
    Can anyone please help here?
    Thanks
    Tanmay Singh

    this is one way to resolve it.
    1- on the master page set a field that will be hidden. On your button that hides the page you will set the value of that hidden field to something like a 1 or hidden or something like that. Does not really matter.
    Now on your initialize event you will create a script:
    if(hiddenField.rawValue == "1"){     //hiddenField is the name of the field you placed on the page
    Masterpage1.presence = "hidden" //Masterpage1 is the name of the master page or section etc.
    I hope this helps

  • Master page mapping & two-level running headers

    Using running headers for two or more levels is probably an age-old problem both in Framemaker and Word. I wonder if anyone has a solution that works with master page mapping.
    To elaborate a bit, I have a number of documents with a typical chapter structure like this:
    1
    1.1
    1.2
    1.3
    2
    3
    4
    4.1
    4.2
    When I use a running header that references both first-level (H1) and second-level headings (H2), the previous second-level heading is carried over to the next first-level section. For example, H2 from section 1.3 is carried over to the running header of sections 2 and 3, as there is no new H2.
    The obvious solution is to apply a different master page to sections that have no second-level heading.
    However, I failed to find master page mapping rules that would give me the intended result: When I use a master page mapping rule for H1 paratags ("use a master page with a running header for H1 only, until changed"), it doesn't consider if there is a H2 paratag on the same page. In conjunction with a mapping rule for H2 paratags, the second-level running header would start at the second subsection of every first-level section, i.e. 1.2 or 4.2, leaving 1.1 and 4.1 with a different header (which is a trade-off, but not too nice).
    Do you know of any solution or workaround (preferably without using FrameScript)?
    Thanks in advance for any helpful comments.
    Johannes
    (This is for unstructured documents in FM 8.0p277 on Windows.)

    JohannesKrueger wrote:
    Good news, I think found a workaround myself. (The solution is similar to what I did in Word.)
    My "magic" building block for the second-level running header is
    <$paratext[+,H2,#EmptyPara]>
    The "+" argument tells FrameMaker to look for the specified paratags from the bottom of the page upwards. If there is no H2, it displays the content of #EmptyPara instead. Now one only has to make sure that there is an empty paragraph with paratag #EmptyPara after the heading of every first-level section that has no subsections.
    If you like to share your solution, I'd still be interested.
    Johannes
    Hi, Johannes:
    I haven't used Word in ages, so I wasn't aware it had become this smart!
    Your solution is good use of existing FrameMaker capability. I don't have any better solution to contribute.
    If the blank paragraphs cause inter-paragraph spacing problems, you might want to create a new paragraph format, "H2_NoSub," for headings that have no subsections, and make it a run-in, so that it pulls the #EmptyPara onto its own line, hence, there's no effect on text flow.
    Yes, you'd need to adjust running header definitions, and TOC included paragraph definitions to deal with the new paragraph format. Just a suggestion.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Master page fields are reset on removal of  subform in the document

    Hi,
    I've got another problem here: In a form I've got a repeatable subform, each intance containing a "remove current instance"-Button and a "add instance"-Button below all the subform instances. This works fine, but every time I delete a subform instance, all the fiels from my master page are reset. That sucks. Any reason why this happens, any workarounds (except putting that stuff into the normal page)?
    Other problem: How do i do a calculation for every subform instance *after* one of the subform instances is removed? Adding a script call to the Action removing the subform instance *after* the removal action doesn't work, it is never executed.
    Regards,
    Jost

    A workaround to the first problem: Make the data binding of the fields in the master page global.

Maybe you are looking for