Javascript for Button to Hide Template Page

This should be simple (I think).
Just need to know how to write the javascript that when a button is clicked it hides my template page. Template page is called "Add Expenses"

Here's a link to the documentation: http://livedocs.adobe.com/acrobat_sdk/11/Acrobat11_HTMLHelp/JS_API_AcroJS.89.1218.html
Note that it doesn't work with Reader, but Reader 11 can delete pages that have been added as a result of spawning a template page: http://livedocs.adobe.com/acrobat_sdk/11/Acrobat11_HTMLHelp/JS_API_AcroJS.89.458.html

Similar Messages

  • URGENT:  Not seeing the variable Pop-up for Button , on web template in WAD

    Hi gurus,
    In IP I have a standard plan function for 'Copy', which has a few variables defined on the funciton itself (as to be changed):
    Version from:
    Version to:
    Order from:
    Order To:
    Fiscal year from:
    Fiscal year to:
    All of the above variable are created with the following parameters:
    Variable input: Optional (have also tried madantory)
    Ready for input: is flagged.
    Variable represents: Single value.
    No default entry.
    No personalized data.
    Now in WAD, I create a button group for this function by selecting the Command, 'Executing Planning Function (simple)', manually entering my plan function technical name next to 'Command specific parameters', and selecting the dataprovider created for the filter I created in IP, and finally flagging the 'Display variable' button.
    The problem is, on the web template the variable screen does not appear when I click on the function button. It executes the function in the background without giving me the pop-up for variable selection. And obviously since the variables have no default values, nothing is processesed.
    I've tried this with planning sequence instead, and still wont give me the variable pop-up screen..
    I've actually explicitlet entered the variables on the 'Parameters for Command screen', the same screen where you enter the filter for databinding and well as the function.
    It still wont work (no variable pop-up screen).
    Is this issue related to the support pack. We're on SP12 right now?
    If not, do any of you gurus have any ideas? Big points will be rewarded for this.
    Thanks

    In the parameterization of the command, there is an option 'show variable screen'. I am not sure if you have mentioned this clearly, but have you checked this option?

  • Type of listener needed for buttons ? please help

    hi
    does anyone know what type of event or listener one should
    include for buttons in a web page which has been downloaded
    into a JEditorPane. i have been able to get a web page
    onto my JEditorPane and can even follow most of the hyper links
    by implemmeting hyperlinklistenter.
    but i am not able to do the same for butttons
    ie for eg in google web site i am not able to get anythinh
    by clicking on button .

    This is not easily dooable, You're talking about form submit buttons, which the Default HTMLEditorKit does not support. Even worse, the LinkController class is not overridable, which is a bad design on sun's part.
    You'd have to create your own EditorKit, me thinks, and use that for text/html.
    Not an easy job, but you could cheat off the HTMLEditorKit source.

  • Document Assembly and Creation of Template Pages?

    What do “document assembly” and “creation of template pages” mean?
    I am a print graphic designer who usually handles the printing for a particular client who does long reports. I also give them a low resolution PDF for email circulation and posting on their website. They are now want to use the PDF for other purposes such as creating PowerPoint presentations that they will do in house. Therefore they have asked me to unlock all the security options -- that quite frankly I never even dealt with. Specifically they want to “allow document assembly, commenting, signing, and creation of template pages.” Assembly, commenting and signing seem innocuous, but will document assembly and template pages have significance for me as a graphic designer? I'm not sure what these two functions are.

    “document assembly” means the combination of documents.
    “creation of template pages” is for the creation of template pages for forms

  • Why are my radio buttons not renaming in pages spawned from a hidden template?

    Hi Everyone,
    I am new to PDF forms, and have never before tried to use JavaScripts. However, I have been able to learn a lot and I have followed many threads and have almost accomplished what I want, but have hit a block. I don't understand the JavaScript well enough to locate my problem. Your help is greatly appreciated.
    SYSTEM SPECS: Adobe Acrobat X Pro  Mac OS 10.8.5
    WHAT I WANT: To create a multi-page (100 pages) form for grading student assignments. Each page must have the same fields, but as each page belongs to a new student, it needs to have different values in the fields on different pages. Each page has 4 questions to score, with 4 score possibilities for each question (0, 1, 2, 3 points), and so only one score should be able to be selected per question.
    WHAT I HAVE DONE, following the directions on this thread (Re: Multiple pages form) ):
    1) Created a form with a field for student name and 4 sets of radio buttons (Labeled Questions 1-4, with score choices 0-3).
    2) Placed a button at the bottom of the page that will spawn a new page and rename fields.
    3) Defined this page as a template.
    4) Spawned a page.
    5) Made the template "hidden."
    THE PROBLEM: Steps 1-4 above work perfectly--as long as the template (named "Form") is visible, when I click the button, a new page generates and the student name field renames the fields on Page 2 to "P2.Form.Student ID #" and the radio buttons rename to "P2.Form.Question 1" etc. Each time I press the button, it renames everything appropriately.
    However, if I hide the template, then when I click the button on page 1, the fields on Page 2 are renamed to "P1.Form.StudentID ##1." AND THE RADIO BUTTONS DO NOT RENAME. They get the name "P1.Form.Question 1" etc. So the student name field did rename in a way that allows me to enter a new name on each page, but it isn't actually reflecting that I am on page 2, and as for the radio buttons, at that point, I cannot enter different scores on different pages because they are all part of the same radio button grouping.
    If I use check boxes, they rename similarly to the student ID field, but I don't want to use check boxes because I want to return one possible score value for each question for tabulating the data. I don't want to leave the template visible because when I distribute this form to other graders, they may enter values into the template page without realizing it, and then when the spawn forms they will have wrong data already entered.
    Here is the script that I have set as the button's Mouse Up script:
    // Specify the name of the template
    var template_name = "Form";
    // Get a reference to the template
    var t = getTemplate(template_name);
    // Add a new page based on the template
    if (t !== null) {
        t.spawn({
        nPage: numPages,      // Add the new page to end of document
        bOverlay: false,      // Create a new page, not an overlay
        bRename: true         // Rename the fields
    } else {
       app.alert("The template named \'" + template_name + " does not exist in this document.", 1);
    Thanks for your help

    Hi again GKaiseril,
    If you have the time, would you be able to tell me how to do that? I tried just changing the page number of the template page to zero, but I get the error "Please enter a starting value of at least 1."  I definitely noticed that all of the discussions about similar subject do all say to somehow put the first page of the form before the template and then hide the template, but I don't think that I know how to do that. I read your response on this discussion "Re: Self replicating form pages in Acrobat Pro 9 (Win XP)" before I ever started this discussion, but have to admit that I can't figure out how to follow your advice "When I create a from that uses a template, I create the template and then spawn the 1st page of the form before the template and then work out the scripting for the 1st page and template and then hide the template."
    Thanks

  • Email button from Order template conformation page.

    hi,
    I got new requirement.in that i have to give give email button on Order template conformation page.
    if i click on email button new popup page will come and it will contain from email id,CC and messege.
    and i have to add entire item list in email.
    please guide me something for this requirement.
    Thanks in advance,
    jayesh talreja

    Hi Jayesh,
    Its an interesting scenario .Anyways to add an email link to the confirm.jsp all you need to do is to add the below javascript and html to confirm.jsp
    function email() {
               var url='<isa:webappsURL name="/ecall/customer/interaction0.do?interactionType=email"/>';
               var spd=window.open(url,"compareWindow","menubar=no,      directories=no, height=600 width=750, scrollbars=yes, status=no, toolbar=no, top=84, left=212");
               spd.focus();
    <tr>
         <td class="value">
            <a hre="javascript:email()"><b><isa:translate key="cic.prompt.index.mail"/></b></a>
         </td>
    </tr>
    Adding these lines will you a link for email on confirm.jsp on clicking on which you will get a new window with the Cc and all
    the required fields and it is used for sending the mails. But your issue for sending the item data from confirm page is still left.
    I will also try to find out the easiest way to send this data.
    Regards,
    Arshi
    Edited by: Arshi Arshi on Oct 6, 2009 3:15 PM

  • An error occurred during translation of your HTML master page. For more information, please navigate to the master page by clicking the preview button in the Master Page Gallery or directly typing its URL

    I apply theme before singing all users into application ,now  visitor/member are not affected color text so we are reapplying themes 
    I am not able to reapplying SPColor /my site Host template "  An error occurred during translation of your HTML master page. For more information, please navigate to the master page by clicking the preview button in the Master Page Gallery
    or directly typing its URL" while applying theme i am getting error
     

    is it your public site/ community site or team site?
    what level of subscription you have?i would say try to delete the site and try to create a new.
    http://community.office365.com/en-us/forums/154/t/147705.aspx
    are you able to open the site in the sharepoint designer?
    or try to send them the private message to the support team.
    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

  • The JavaScript for this page failed to load correctly. Always on shutterfly.

    I'm trying to view photo albums on shutterfly and always get the following error. "The JavaScript for this page failed to load correctly. "

    Howdy there JohnB,
    It sounds like you are unable to access your Shuttefly due to a JavaScript issue in Safari. I would start by checking to see if JavaScript is enabled in the Preferences.
    Enable JavaScript
    JavaScript is a software technology that allows some buttons, online forms, and other webpage content to work properly. To block JavaScript, deselect this checkbox.
    Note: Disabling JavaScript can cause many sites not to work properly.
    From: Safari 6 (OS X Mountain Lion): Security preferences
              http://support.apple.com/kb/PH11886
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • The JavaScript for this page failed to load correctly

    I keep getting this message "The JavaScript for this page failed to load correctly" when I try to access my Shutterfly accounts.
    This is a new problem since upgrading to Mavericks.  It does not happen on my Macbook Pro running Mavericks.
    John

    Howdy there JohnB,
    It sounds like you are unable to access your Shuttefly due to a JavaScript issue in Safari. I would start by checking to see if JavaScript is enabled in the Preferences.
    Enable JavaScript
    JavaScript is a software technology that allows some buttons, online forms, and other webpage content to work properly. To block JavaScript, deselect this checkbox.
    Note: Disabling JavaScript can cause many sites not to work properly.
    From: Safari 6 (OS X Mountain Lion): Security preferences
              http://support.apple.com/kb/PH11886
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Conditionally Hide Dashboard Pages using Javascript.

    Hi, I would like to share a small logic i developed to Conditionally show or hide Dashboard Pages based on a Repository Variable.
    In the last few weeks we noticed that the ETL jobs scheduled everyday were failing due to various obvious reasons. As a result, Our Dashboard are greeting the users with "No Data to Display Messages". Most of our Sales Dashboards are defaulted to show business health as of yesterday (Sysdate -1). If ETL scheduled everyday at 3 am failes, then the Dashboards show no data. Emails from Users, etc. etc........
    For a few days we were manually trying to post some messages on Dashboard something like "Please come again, Our Data for yesterday is not yet loaded........".
    I thought it would be nice to hide the Dashhboard Pages automatically, rather than manually posting a message whenever data outage or etl job failure occures.
    To do this, I
    1. Identified the table that the ETL folks update at the end of every job. This table has a column to say the status of the load (Successful, UnSuccessful) and also a date column to show the most updated load date and timings.
    2. Created an Initialization block that would go fetch the most recent loaded date and status of the load values. I set this block to fire every 5 minutes.
    3. Created a report with a Date Column and a bogus columns with FX set as the Repository Variable for Load Status. Added filter on the Date as = the repository variable for Load Date.
    4. In the Narrative View of this Report, I added the following JavaScript.
    In Prefix section:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>     
    <script type="text/javascript">          
    var curTable = document.getElementsByTagName("table");
    In Narrative Section:
    var cFlag = "@2";
    In Postfix Section:
    if (cFlag == "UnSuccessful"){
    for (var i = 0; i < curTable.length; i++) {
    if (curTable.className == "PageTable") {
    curTable[i].style.display = 'none';                         
    /*var curBody = document.getElementsByTagName("body")[0];
    var newTable = document.createElement("table");
    var newTBody = document.createElement("tbody");
    var newRow = document.createElement("tr");
    var newCol = document.createElement("td");
    var curMessage = document.createTextNode("Data for this dashboard is currently unavailable due to the daily load process." + '\n' + "Sorry for the inconvenience.");
    newCol.appendChild(curMessage);
    newRow.appendChild(newCol);
    newTBody.appendChild(newRow);
    newTable.appendChild(newTBody);
    curBody.appendChild(newTable); */
    alert("Data for this dashboard is currently unavailable due to the daily load process. Please check back shortly." + '\n' + "Sorry for the inconvenience.");
    </script>     
    </head>
    <body>
    </body>     
    </html>
    Note: I originally wanted to post the message on the Dashboard, but there are some issues with IE 7, with appendChild method. But it works fine with FireFox. So I did not wasted any time on Javascript Errors, rather just had an alert message, that basically does the job i need. I mean tell the users about the ETL Status.
    5. Finally I added this report in the Dashboard. Key point here is the above report should be added in the Lower Column. I mean if there are six Dashboard COlumns aligned as 2 Columns X 3 Rows, I added the Narrative Report on the 5th or 6th Columns.
    When the load status is unsuccesful, the narrative report will hide the Dashboard Sections and shows a message to the users.
    Thanks
    Sai
    Edited by: Sai Kumar Reddiboyina on Sep 23, 2009 5:51 PM
    Edited by: Sai Kumar Reddiboyina on Sep 23, 2009 5:51 PM

    Hi Turribeach, the reason i set it as "Answered" because, I have found the answer by myself and wanted to share with others.
    Also,
    Guided Navigaion is very expensive in terms of performance and I am talking about at least 8 to 10 answer requests per page here.
    Thanks
    Sai

  • Purchase Order: Hide "Template" Buttons

    Dear All,
    Do you know how we can hide or disable the buttons "Save as template" and "Load from template" in a PO (Transaction ME21n. ME22n, ME23n)? Where has the customizing do be done?
    Thank you,
    Thomas

    Hi Thomas,
    This new template button appears due to activation of business function "LOG_MM_CL_3" with EhP5.
    Only certain business functions are reversible/de-activated. I do not think above can be de-activated.
    Only way, you can try controlling with authorization object Create/Change/Delete Public Templates M_TEMPLATE, else have a screen variant and suppress this buttons.
    Note : In case of screen variant, you have to do for PR too.
    This template function have some bug and you can make use of it by implementing OSS note : 1625040 Template Selection for Purch. not possible
    Regards,
    Ram

  • How do you hide the Page Options button on dashboards in 11g?

    Hello,
    I would like to hide the "Page Options" button on a dashboard in 11g. I found some examples on how to do it in 10g, and they all talk about editing a file called dashboardtemplates.xml. I can't find this file on my 11g BI server, so I'm assuming the file was part of 10g but not 11g. Has anyone figured out how to hide the "Page Options" button on a dashboard in 11g?
    thanks,
    Scott

    Hi Satya,
    thanks for your reply, but I have a feeling that your solution is for obiee 10g and not for obiee 11g. We are using 11g, and when running Analytics (Answers), I don't see a "Settings" option, but I seem to recall that in 10g there is a "Settings" button/link. Also, I don't understand how your solution answers my question. You describe how to grant "everyone" read permissions on dashboards, but I want to know how to hide the "Page Options" button on dashboards.
    Sincerely,
    Scott

  • Jsf+javascript for form button enable/disable

    I have a page that has checkboxes and input boxes on it. I want the submit button disable when the page initially loads, and then upon making any chages to the form fields, enable the submit button. I have the javascript working, but the form is actually not going to my submit method in my backing bean. Here is my javascript:
    function enableSubmitButton(form, inputElement) {
        var formId = document.getElementById(inputElement.id).form.id;
        var submitButtonId = document[formId][formId+":submitButton"];
        submitButtonId.disabled = false;
        submitButtonId.setAttribute("class", "inputButton");
        submitButtonId.setAttribute("className", "inputButton"); // for IE which does not recognize "class"
    }Here is an example of a checkbox:
    <h:selectBooleanCheckbox id="chkChannelEmail"
         value="#{services.emailSubscribed}"
         rendered="#{services.renderEmail}"
         onclick="displayRequiredFields(this, 'chkChannelService); enableSubmitButton(this.form, this);">
    </h:selectBooleanCheckbox>and here is my command button
    <h:commandButton type="submit" value="Submit" id="submitButton" action="#{BackingBean.submit}" styleClass="inputButtonDisabled" disabled="true" />It seems to be updating the disabled value, because when my page loads up, i can alert out the disabled value, and it is true, and if I click on a checkbox, it alerts out that the disabled value is false, but submitting my page doesn't actually work.
    Thanks!!
    Edited by: jrthor2 on Oct 16, 2009 3:10 PM

    The commandbutton won't be invoked as long as the disabled attribute still evaluates to 'true' in the server side. So you need to solve this the other way. Let the disabled attribute for example depend on a request parameter or pass a hidden input element which notifies JSF that the disabled attribute should evaluate to 'false' and so on.
    The same story applies on the 'rendered' attribute by the way.

  • PDF Form javascript for making readonly field by using button

    Please let me know the PDF Form JavaScript for making selected fields(Text field,Drop down list,..) as read-only by using Button.

    Do you want your button to be made read only?
    One starts with Acrobat JS Reference.
    // make all fields in a form read only;
    var oField; // variable for field being processed;
    // loop through the form fields;
    for (var i = 0; i < this.numFields; i++) {
    // process each field name;
    oField = this.getField(this.getNthFieldName(i)).readonly = true;

  • How to apply template page to all pages except for logon page?

    Hi,
    I created a template page with id 0 that contains some copyright and other basic information of my application. Is there a way to apply this to all pages within my application except for the logon page?
    Regards,
    Tamas

    It's possible to make page items or regions conditional on the page not being a page number that you specify.
    Head to your page 0, and look for the relevant item in your conditionals list. Select it and specify your login page number in there and all should be well!
    Ben

Maybe you are looking for

  • Trigger an exception in BPM ( Control Step )

    Hi everyone, I have a BPM which has a switch with three branch, one of them has a transformation to generate a mail structure and a sender to send the email, now I need throw an exception after send the email, I have think use a control step to do it

  • Shape Sizing

    When I make a shape using the rectangle tool, I type in an exact number - for example 3" x 4".  However, the recatngle that I get is always slightly off - for example 3.0139" x 4.0139".  The reason that this is a problem is because I am drawing items

  • I can't install my Centro via USB

    Hello, everybody. Thanks for this forum and your useful help. I have a Palm Centro CDMA with the USB cable, but I lost the CD. I downloaded Palm Desktop 6.2 and installed it to my computer which is a Gateway with Windows XP SP3. But, whenever I conne

  • Gradiet tool to stroke more creative

    Hi! 1 It would be great if the gradient tool to work directly on the specified stroke. For example, to color markers moved the line of stroke. 2 It would be great if using a combination of tools "gradient tool" and brushes "calligraphic brush" and pa

  • Final Cut Pro 7 - Rendering (OUT OF MEMORY)

    I'm trying to render a project, but it says I am out of memory, but I have over 1tb avalible in space and 32 gigs of memory. what's the deal? thanks for the help in advance!