Multiple Add Page Buttons Question

I'm working on a form that will have five seperate buttons to open five seperate templates. I've gotten the first set of buttons done and am thinking I may run into a stumbling block.
When the user clicks Yes, a hidden template opens. When the user clicks No, the page is deleted. The user will not always need to have more than one template but may need say template one and four.
I currently have my No button set up to delete a specific page number.
My question is: If the user spawns template one and four and then decides they don't need template four and wants to delete it by clicking No, how would the program know to delete the template that was spawned by button four? Is there a way to say "delete this specifc template name" instead of "delete this page number"?
My Yes button script says:
var a = this.getTemplate ("Template"); a.spawn();
My No button script says:
var a = this.deletePages
({nStart: 1});
I appreciate the help.

GKaiseril -
Yes, this is a form.
This form will be accessed using the PDF Expert app by Readdle on an iPad, primarily. The final product, which will be a flat PDF will be viewed with Reader.
I wonder if there is a way to designate a static character for the page number. So, instead of asking it to delete page 2, you could ask it to delete TemplateX if Template X has been generated.
This is a grab of what I am working on. I have this duplicated five times in the form. When the user selects Yes for Submit Written Quote for Repairs, it spawns a Template. Each of the five Yes boxes generates an additional Template page.

Similar Messages

  • Add page button throwing error

    I have a "add page" button on my form that is suppose to create a new instance of both page 3 and page 5.
    I got it working in two different fashions:
    FormCalc
    Page3.instanceManager.addInstance(1);
    Page5.instanceManager.addInstance(1);
    Javascript
    Page3.instanceManager.addInstance(true);
    Page5.instanceManager.addInstance(true);
    In both cases a new instance of page 3 & 5 are added to the form and everything functions as expected.
    The problem is that right when the button is pressed I get an error message
    It appears to me that it is trying to set the value of 'initial' which is a child element of 'occur' which I assume has not been initialized but I am having a heck of a time figuring out how to peroperly do it.
    Thanks in advance for any help.

    pguerett found the answer.
    Both my pages contained tables that were set to have 18 rows each.  The problem stemmed from the first page, whose table was defined to have a min rows of 18, a max rows of 18 and an initial row count of 18.  By unchecking the initial rows and leaving just the min and max everything is working great.
    Thanks pguerett

  • Clicking Add Page button deletes data from initial page.

    I have an Add Page button on the first page. I enter information into my first page. When I click the Add Page button, a new page (page 2) is added but the information I have inputted into the first page disappears. I have attached the form that I am struggling with. Any help would be appreciated!

    Modified your sampel to make it work.
    1. For the Page 2 subform you should set the minsize as 0,  themaxsize to 1 and the initial count to 0. In doing this there is no addressable object to script against.
    2. In the code that adds the page you have a command:
    form1.Page2.instancemanager.addInstance()
    As there are no subforms for Page2 present you get an error about the object not existing. The Page2 object does not exist yet so you cannot call teh instanceManager method. So you must use another notation to get to the instanceManager. In this instance you vcan use the underscore (_) notation to access the instanceManager of an object that is not part of the layout yet. So your command will be:
    form1._Page2.addInstance().
    3. You may want to disable the button after they add the second page as well as position the cursor in teh 1st field on teh next page. To do this you can add this code:
    xfa.host.setFocus(Page2.Table1.Row2.Action_Step);
    this.presence = "invisible";
    Note that you must reposition the cursor before you hide the object otherwise the hide the button code will not work.
    Hope that helps
    Paul

  • 2 table rows - one "Add Row" button

    I am a novice, not alot of training with javascript.
    I need 2 table rows added to a table without having multiple "add row" buttons. I would like to be able to add both rows with one button.
    right now the button is set for the most current row:
    Table1._Week.addInstance(0);
    the row above is Table1._Codes
    How do I script this in order to have both rows appear when the Add Row button is selected?

    Hi,
    A couple of things without benefit of seeing the form.
    Are the repeating rows called:
    'Week' / 'Codes'?
    OR
    '_Week' / '_Codes'?
    The underscore '_' is shorthand for instanceManager, which is used to call the addInstance. If I assure that the repeating rows are just 'Week' / 'Codes' then the following javascript in the click event of the button should work:
    Table1._Week.addInstance(true);
    Table1._Codes.addinstance(true);
    This should add a row to each repeating row in one button.
    Please note that the parameter for the addInstance is either 0 (false) or 1 (true), which relates to whether the row will be data merged with the form.
    Hope that helps,
    Niall
    hmmm, see you have another thread on this: add multiple rows with add a row button ???

  • Automatically add page numbers to PDF

    Hi all,
    I've got a pdf document with forms which also contains a "Add Page" button which adds another matching page.
    What I would like to add to is a "Page 1 of n" type field that auto updates with the amount of pages in the document.
    I have seen something similiar in previous posts but these were dependent on pressing a button to update the page numbers or was implemented in a way I do not understand.
    Please keep in mind I have no clue about Javascript, the only reason I have gotten so far is info from these forums!
    I have access to the Adobe Creative Cloud Suite of tools so Acrobat Pro, Illustrator etc is at my disposal for the above.
    Hope ive added enough info, thanks in advance

    Hi gilad,
    Thanks for your reply.
    I added your script and it worked on the first page, but as soon as I click my add page button the first pages numbers goes from "page 1 of 1" to "page 0'11 of 2". The second page, which I added via a template, then shows "page 1 of 1".
    Any thougts on this?
    I apprediate your help so far

  • Multiple 'add row to updateable form' buttons on same page

    Hi,
    I have a master-details page with 1 master region and 2 details regions. Both details regions are updateable reports. In each details region, I created a 'Add row' button, with a different name. Then I created 2 'Add rows to tabular form' processes, one for each button.
    The issue is that both buttons add a row to the same details report. How to specify which button adds a row to which report?
    Thanks,
    Guillaume

    Guillaume,
    The built-in tabular form feature only supports one tabular form on each page. You'll have to put the two forms on separate pages. Or use simple reports as the detail reports with edit links to an edit form page.
    Regards,
    Marc

  • Multiple page report question

    My client would like to run a report by project. A project can have multiple sub-tasks and each sub-task can have additional tasks.  Each additional task has 6 sections on the report which all need to be separated by page breaks.  The report
    need to separated by the additional tasks so in the example below I would have 18 pages of reports, grouped by Sub task and Additional task.  How do I group this report to make it work correctly?  Would sub-reports work better - still having trouble
    with the grouping issue as well on those.
    Project
             Sub task 1
                          Additional Task1
                          Additional Task 2
             Sub Task 2
                          Additional Task 1

    Hi Dan,
    According to your description, we are not clear about the “6 sections for each Additional task”. Do you mean six data records? If so, based on my understanding, there are three groups and eighteen records in your report. You want to make those records appear
    on eighteen separated pages, right?
    In Reporting Service, we can add a page break to groups within data regions to control the amount of information on each page. In your scenario, you should add page break to group “Sub task”, group “Additional Task” and details. As we tested in our environment,
    add page break to these records, the report appears in eighteen pages. Please refer to steps below:
    1.On Group Properties of Details1, choose “Between each instance of a group” option on Page Breaks page. Please refer to screenshot below:
     Choose same option on Group Properties for group “Month” and “Name”.
    2.Click drop-down button next to Column Groups, then choose Advanced Mode.
    3.Click on Static under Row Groups, set RepeatOnNewPage as True in Tablix Member Properties.
    4.Click Preview, the results before and after adding page break look like below:
    If you still have any question, please post some detail information or screenshot about the report design you expect.
    Best regards,
    Qiuyun Yu

  • How do I add a "Print this page" button (not just a "Print" button) to a PDF?

    I am creating a multipage PDF in Acrobat Pro 8 for a client and it includes a linked table of contents with several sections and also several forms sprinkled throughout. I need to be able to add buttons that allow the user to print specific page numbers. Is it possible to add a "print this page" button to a page ... or even a "print this form" in case the form within the larger document is multiple pages? I would appreciate any help, thanks!

    I was just coming back to here to say I've figured it out and am using an invisible button (over text that was created to look like a link) on each page... tested and working (when combined with the code). Thank you for your replies!

  • In table view, how to add one button for selecting page?

    Hi Experts,
    In the OBIEE 11.1.1.6, we have one uncommon requirement that customers want to randomly select actual page to view expected data in table view.
    For example:
    We make use of some columns to create one report in table view, and set 'Rows per Page' equal to '5',
    if this report contains 60 rows, it will have 12 pages, so customers want to select sepcial page number to view the some data. Is it possible to implement this requirement? Maybe we should write JS code.
    Note: Below table view, it has four buttons: First Row, Previous Row, Next Row and Display (500) rows in per page. So we want to add one button to select per page.
    We look at orgnial codes in WebBrowse, but do not know the following codes derive from which JS file.
    Could you please tell me how to find this file?
    <td class="TapeDeckCell"><img class="TapeDeckImage" onclick="" onkeypress="" src="res/s_blafp/viewui/pivot/first_dis.png" title="" alt="" ><img class="TapeDeckImage" onclick="" onkeypress="" src="res/s_blafp/viewui/pivot/previous_dis.png" title="" alt="" ><img class="TapeDeckImageEna" onclick="PTRowScroll('saw_5083_b','5','5', event)" onkeypress="PTRowScroll('saw_5083_b','5','5', event)" src="res/s_blafp/viewui/pivot/next_ena.png" tabIndex="0" onmouseover="PTTD(event, 'res/s_blafp/viewui/pivot/next_ovr.png');" onmouseout="PTTDO(event)" onmousedown="PTTD(event, 'res/s_blafp/viewui/pivot/next_dwn.png');" title="Next 5 Rows" alt="Next 5 Rows" ><img class="TapeDeckImageEna" onclick="*PTRowScroll*('saw_5083_b','-1)', event)" onkeypress="PTRowScroll('saw_5083_b','-1)', event)" src="res/s_blafp/viewui/pivot/showallrows_ena.png" tabIndex="0" onmouseover="PTTD(event, 'res/s_blafp/viewui/pivot/showallrows_ovr.png');" onmouseout="PTTDO(event)" onmousedown="PTTD(event, 'res/s_blafp/viewui/pivot/showallrows_dwn.png');" title="Display maximum (500) rows per page" alt="Display maximum (500) rows per page" > <Span class="TapeDeckRecords">Rows 1 - 5</Span></td>

    Hi Kobe,
    Thanks for listening me.
    I agree 11g have some issues unlike 10g. I've tried the same by creating a measure rcount(1) and name it as Page in RPD. I just pulled column Page in pivot table section 'Pivot Table Prompts' it is working but this may not answer your requirements.
    I would suggest to use the column in Prompt and go by between operator to allow user to select the rows between.
    In the report make Page as prompted.
    If you are okay with this can look forward to tweak it further, like values in the prompt multiple of 5 or 10s some thing like that.
    let me know updates on the same.

  • Is the 'add new page' button working? (SG CC)

    Anyone else having issues with the add new page button under the look tab?  When I click it, instead of being able to add a new page with my custom looks or reopen any of the example folders, it makes a copy of whatever page happens to be selected.  I feel like I'm missing something because I don't remember encountering the problem with CS6.

    Answered my own question.  I was in "Quick View Mode" not "Look Management View Mode".  From the right view you can navigate to the folder you want displayed. /winning

  • Can I add Action button on each page of my pdf document

    I have created  many power point slides with an action button on each slide that allows the user to click to display a video clip.   I would like to create a pdf document of this and replace each of my action button in ppt with an action button that works in Acrobat.
    I noticed that action buttons can be added to forms, but I want to be able to add an Action Button on each of my ppt slides to start playing a video clip (each slide will have a different video).
    I would like to do this using any coding method (i.e. Javascript, VBA, C , etc).   I think acrobat uses Javascript.
    The reason, is that I want to display my power point slides on an IPad and they don't support hyperlink in power point.   I believe IPad does suppport the full acrobat capabilities.
    Can this be done ??  
    Any suggestions where to start ??
    Thank You,
    G

    NO problem creating the buttons and then playing this back in Acrobat. Works great.
    However, unfortunately, none of the PDF viewers for the iPad support playing movies.   So playing it there won't work :(.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Sat, 28 Jan 2012 11:00:47 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Can I add Action button on each page of my pdf document
    Can I add Action button on each page of my pdf document
    created by gw70115<http://forums.adobe.com/people/gw70115> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4171109#4171109

  • How can I add a button to add multiple image in PDF from using adobe acrobat pro?

    I have to create a pdf form using Adobe Acrobat Pro X.
    In this form I want to add a button where I can add multiple images to the field.
    I have tried using javascript event.target.buttonImportIcon(); and successfully add an image, but when I want to add the 2nd image it automatically overwrites the previous one.
    Is there any way to solve this issue? I would like to have a form where I can add a lot of images in it. It is possible in word, but we really have to use adobe.
    Thanks

    Hi thanks for your answer.
    I can add multiple button, but if there are 10 images that I wan to add, then I have to create 10 buttons.
    Moreover, the pictures will be placed on top of each other and it means that you cannot see it clearly.

  • How do I add multiple songs to an existing playlist from the (no longer called) Library? Highlighting multiple songs and clicking the "Add to" button will only add the with the little arrow, not all the highlighted ones!

    How do I add multiple songs to an existing playlist from the (no longer called) Library? Highlighting multiple songs and clicking the "Add to" button will only add the one with the little arrow, not all the highlighted ones! I am using the "new" iTunes.

    For the moment there isn't a way for us end-users to control what is "matched" or "uploaded." That is purely a result of Apple's server-side algorithms.
    To re-add multiple songs at once simply highlight all the songs you want to re-add, then right-click (or Control+click) the list and choose "add to iCloud."

  • How to add new button in Customized page....

    Dear All,
    I need to add new button to the page button bar in the UI page.I tried like this in the controller but still i can not get output:
    OAPageButtonBarBean oapbb = (OAPageButtonBarBean)oawebbean.findIndexedChildRecursive("OrderPageButtons");
    OAButtonBean cancelButton = (OAButtonBean)createWebBean(oapagecontext, OAWebBeanConstants.BUTTON_BEAN,
    null, "cancelButton");
    cancelButton.setText("Cancel");
    oapbb.addIndexedChild(cancelButton);
    Is there anything i missedout?
    TIA

    what you are doing incorrectly is
    trying to get the handle to the OAPageButtonBarBean.
    This is a named child of the parent bean(OAPageLayoutBean), and what you are trying to do is find it as a indexed child, this should give you a nullpointer excp in this line oapbb.addIndexedChild(cancelButton);
    since the handle should be null.
    to get the handle to OAPageButtonBarBean, use some like this
    pageContext.getPageLayoutBean().getPageButtons();
    and then add buttons to it.
    Thanks
    Tapash.

  • I am using CC adobe Acrobat to combine multiple pdfs and add page numbers. Mac users can no longer read the page numbers but pc users can.

    I am using CC adobe Acrobat to combine multiple pdfs and add page numbers. As of about 2 weeks ago the mac users can no longer read the page numbers they get a font error message and see only -- where the page information should be. The pc users do not have this same problem. When I replace our regular font (URW Grotesk) with a system font (Verdana) everyone is able to read the page numbers. This is a new issues, I have been creating these documents in the same way for years without a problem. I have been on hold and on and off calls for the last two hours, I keep getting hung up on once I find someone in adobe support to talk to!

    Hi KnoopL,
    Are the Mac users using Preview to view the pdfs or Adobe Reader?
    Regards,
    Rave

Maybe you are looking for