Adobe Acrobat Pro XI - JavaScript

I am trying to copy a javascript from an old form's "submit" button created in LiveCycle Designer to a new "submit" button on a new form created in acrobat pro XI and keeping getting an error message in the debugger that reads...
topmostSubform is not defined
1:Field:Mouse Up
ReferenceError:  topmostSubform is not defined
1:Field:Mouse Up
What does this mean and how can I fix?

So I created a new "submit"  button in LCD using the proper javascript for LCD (basically did a cut and paste from old form to new form).  When I launched the "submit" button in adobe acrobat I got a "Check Names" box that reads "Micorsoft Outlook does not recognize "1.Duuble click the attachment."  Oddly, the old form works fine in adobe acrobat but the new does not.  What should I do to fix?
This is the top portion of the script that I copied.
topmostSubform.Page1.Button2::click - (JavaScript, client)
//@@SUBMITURL "mailto:[email protected]?subject=Submitting Completed Form&body=Instructions to add this form to a responses file:\n1. Double-click the attachment.\n2. Acrobat will prompt you to select a responses file.&ui=false"

Similar Messages

  • How to round numbers using javascript in Adobe Acrobat Pro?

    How to round numbers using java script in Adobe Acrobat Pro?
    For example:
    1.2 becomes 1.0
    1.7 becomes 2.0
    Thank you.

    Assuming you've already set the field to a Number format category and limited it to one digit to the right of the decimal, you can use the following custom Validate script:
    // Custom Validate script
    event.value = Math.round(event.value);
    More info: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/roun d

  • 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 a functional "submit button" to a pdf form in Adobe Acrobat Pro XI ? I created the pdf form in Adobe Forms Central.

    How do I add a functional "submit button" to a pdf form in Adobe Acrobat Pro XI ? I created the pdf form in Adobe Forms Central. It's for an online Diet Questionnaire. After people complete the form I'd like them to click "SUBMIT" and the completed form will be emailed to me.

    This can be a bit confusing because Acrobat 11 comes with the desktop app that allows you to create simple PDF forms without having a FormsCentral account. Some people find this helpful, but you need to understand that when you generate the PDF form, it is Reader-enabled by Acrobat. In order to edit the form further in Acrobat, you have to create a non-enabled copy of the form. You do this in Acrobat by opening the form and selecting: File > Save a Copy
    and opening the copy. It is not opened automatically.
    You can now add a button and set it up to submit by email, either using a "Submit a form" action or the submitForm JavaScript method. You can set it up to include just the form data or the entire PDF, and will want to use a mailto type URL. Submitting the form to the FormsCentral server has a number of important advantages over email (much more reliable, more secure, etc.), so you might want to consider it.
    If the form needs to be saved with Reader versions prior to 11, then you will need to Reader-enable the document. In Acrobat 11 you do this by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools

  • Create a dynamic dropdown field in Adobe Acrobat Pro XI

    Hello all. I am trying to create a field in one of my forms using Adobe Acrobat Pro XI. I have a dropdown list of "main" items, and based on what is selected in that list, I want a second dropdown list to give different choices. I have searched and searched and have javascript that I thought might work, but maybe I am have a mistake or I am placing the javascript in the wrong place, becasue it is not working. I know very, very little about javascript, so any help would be so much appreciated.
    I am using Adobe Acrobat Pro XI. I added a "new field", and selected "dropdown". The field name is ProvType. The dropdown options are:
         Inpatient
         Outpatient
         Physician
    I have the "Commit selected value immediately" selected.The field is not validated. The format is "none." There are no actions or calculations associated with it.
    I then created another dropbox, and named it SubProvType. Under Actions, I selected the trigger as Mouse Up, and then selected the Action "Run a JavaScript." I selected the add button, and typed this in the JavaScript editor:
    switch (ProvType.rawValue)
        case "Inpatient":
            this.setItems("Hospice,Hospital,Nursing Facility");
            break;
        case "Outpatient":
            this.setItems("Adult Day Center,Home,Other");
            break;    
        case "Physician":
            this.setItems("Surgeon,Family Practice,Neurologist");
            break;    
    What I want to happen is:
    If "Inpatient" is selected, I want the following options to be available in the second dropdown box "SubProvType":
         Hospice
         Hospital
         Nursing Facility
    If "Outpatient" is selected, I want the following options to be available in the second dropdown box "SubProvType":
         Adult Day Center
         Home
         Other
    If "Physician" is selected, I want the following options to be available in the second dropdown box "SubProvType":
         Surgeon
         Family Practice
         Neurologist
    However.... when I close the form editing and try to select a different option in the ProvType field, the SubProvType field remains blank and there are no options available. There are also no errors.
    I must be missing something, but I have no idea where to start. Thank you in advance for any help anyone can provide.

    dbettis2.... Please understand that everything I am about to tell you is ONLY thanks to the help I received from Gilad D. I don't know if this will help you or not, but I want to try and pass it forward.
    If what you are looking to do is have two dropdown fields, and the second one (concentration) be a list determined by what was chosen in the first one (newMajor) then this will work, if you are using Adobe Acrobat Pro.
    Create a dropdown field and name it newMajor. In the "options" tab. Make sure that you enter all of the items that you want in that list AND that they match the javascript (or this will not work.)
    In this case, I believe you want the initial list to be:
    - Select One -
    BA - Communication (BACOMM)
    BA - History (BAHIST)
    BBA - Business Administration (BBA-BADM)
    After you create the dropdown field and enter all of the options, go to the Validate tab, chose "run custom validation script", then copy and paste the following:
    switch (event.value) {
        case "- Select One -":
            this.getField("Concentration").setItems(["-----"]);
            break;
        case "BA - Communication (BACOMM)":
            this.getField("Concentration").setItems(["- Select One -","None","Mass Communication (MCO1)","Theatre (THEA)","Communication Studies (MC02)"]);
            break;
        case "BA - History (BAHIST)":
            this.getField("Concentration").setItems(["- Select One -","None","Teacher Certification (HIS1)"]);
            break;
        case "BBA - Business Administration (BBA-BADM)":
            this.getField("Concentration").setItems(["- Select One -","None","Supply Chain Management (SCM)","Hospitality Management (HSMG)"]);
            break;
    Then create a second dropdown field, and name it Concentration. Nothing further needs to be done with the second dropdown field (as far as entering options or any javascript.)
    It should work. I have created a form using this code and field structure, and it is working. I hope this helps you, if in fact this is what you were trying to do. (I do not know how to attach a file to this post or I would send you the PDF that I made so you could see the fields. If you message me, I can send it to you.)

  • How do you Make an Interactive Drop Down Menu in Adobe Acrobat Pro That Uses Hyperlinks?

    Hi first off let me point out and apologise in advance for my ignorance and possibly my misuse of the correct terms, I'm new to this.
    Anyway here goes, my best attempt to try and explain myself. Using Adobe Acrobat Pro I am trying to create a drop down menu that lists a set of documents. Once you click an item in the drop down menu it then opens up the corresponding document. So far example the Menu reads "Documents" and below it there is three options "Dogs" "Cats" "Hotdogs" when you click on "Hotdogs" you open up the document for hotdogs etc.
    I have actually done it once before using Javascript and a combo box and I think basically you buried the links to documents in a series of bookmarks, the Javascript code then was basically a shortcut to activate those bookmarks.
    So in short, could someone please tell me the code I would need to make this happen? I have looked extensively for the right forum post to see if my question has already been covered but I couldn't find anything and I possibly could have been using the wrong search terms.
    Please ask me to clarify anything to help you understand what it is I'm asking.
    Thank you in advance for all your help.
    Elliot.

    Hey I think I found a solution to my own problem I made an "OK Button" right click>properties>actions>select action>run a javascript>add - and executed this code:
    function searchBookmarks(bkm, nLevel, bkmName)
      if ( bkm.name == bkmName ) return bkm;
      if (bkm.children != null) {
      for (var i = 0; i < bkm.children.length; i++)
      var bkMark = searchBookmarks(
      bkm.children[i], nLevel + 1, bkmName);
      if ( bkMark != null ) break;
      return bkMark;
      return null;
    function bookmarksAsPopUp(bookmarks)
       if(bookmarks && bookmarks.children)
         for(var i=0;i<bookmarks.children.length;i++)
      bookmarkName = bookmarks.children[i].name.replace(/\s{2,}/g,' ');
      while (bookmarkName.indexOf(String.fromCharCode(11)) > 0)
      bookmarkName = bookmarkName.substring(0,bookmarkName.indexOf(String.fromCharCode(11))) +" "+ bookmarkName.substring(bookmarkName.indexOf(String.fromCharCode(11))+1)
      popUp = popUp+"{cName: '"+bookmarkName+"', cReturn: '"+bookmarkName+"'" ;
      if(bookmarks.children[i].children)
              popUp = popUp + ", oSubMenu: [";
       bookmarksAsPopUp(bookmarks.children[i]);
       popUp = popUp + "]";
      popUp = popUp+"}";
      if (i != bookmarks.children.length-1)
      popUp = popUp+", "
       return popUp;
    var popUp = "";
    bookmarksAsPopUp(this.bookmarkRoot);
    var cChoice = eval("app.popUpMenuEx(" + popUp + ")" ) ;
    bkm = searchBookmarks(this.bookmarkRoot, 0, cChoice );
    if ( bkm != null ) bkm.execute();
    Then you can just add your own bookmarks and they populate the pop-up menu automatically (including the hierarchy sub menu structure, you nest bookmarks within a main book mark.) which is a more efficient way than the one I used before.
    I take no credit for this by the way my source is here PDF Bookmarks as a PopUp Menu | The Practical:PDF Blog
    I hope this helps anybody looking to do the same.

  • Adobe Acrobat Pro 9.0 Won't Let me Save a Filled PDF Form

    Hi,
    I am using Adobe Acrobat Pro 9.0 to fill out financial forms for my budget and finance department. The thing is, I can only print the form out when completed, but can't save it (I use "Save As" and rename the file).
    When I do "Save As," the next time I pull up the form I see the data I inputted for a split second and then it is all erased automatically.
    This is frustrating as I need the data to be available every time I open the form.
    I am using Windows XP Professional on a Dell Optiplex 755 with an Intel Core 2 Duo E6850 @ 3.00GHz with 1.96 GB RAM. Again, I am not using Reader, I am using Adobe Acrobat Professional 9.0.
    Thanks!

    There is probably some JavaScript either as a document level script or page open action that is clearing the fields. If you edit your preferences you can turn off Acrobat's JavaScript,but this will also prevent calculations for running as they use JavaScript.
    You could also export the the data as an FDF file and then import the data after the form is opened.

  • Issue with Submit a form in Adobe Acrobat pro XI

    I have created a form in Adobe Acrobat Pro XI and am using a submit form button.  I want the body of the email to display a html version of the PDF, however, instead it attaches the file as a *.tmp file and does not show up in the body.  What am I am missing?  (also, outlook blocked access to the file and claimed it to be a potentially unsafe attachment, but trying with other e-mail editors i still had no luck)
    Also, is there a way to do this in javascript? if so, how?
    (I would like to know how to do it with and without javascript if available - im learning)

    not really, someone else mentioned that it could be done and they said they saw it before.  I've been beating myself up for a while trying to figure out how to get it to happen.   Is there an easy way to get the content of the pdf form into an email body with plain text when pressing a submit by email button?
    Such as...
    <label name>: <txtfield content>
    First name:  <txtfield content>
    ...etc..

  • Creating a basic list portfolio in Adobe Acrobat Pro X 10.1.2 and higher

    All,
    I am trying to create a basic portfolio in Adobe Acrobate Pro X 10.1.2; however, I only have the following layouts available:
    Click-Through
    Freeform
    Grid
    Linear
    Wave
    None of these layouts seem practical.  I just need a standard list portfolio, similiar to the "list with file preview" layout available in Adobe Acrobat Pro 9.5.5.  Is there a similar list portfolio available in later versions of Adobe that I am just not aware about?  I really don't want to have go looking for a custom-portfolio to download.
    Thank you for your help.

    Hi,
    To be complete on this, first make sure JavaScript is enabled:
    Edit > Preferences, JavaScript category
    Check "Enable Acrobat JavaScript".
    To open the console, you can hit ctrl-J.
    -Or- to use a tool button to open the console, do the following:
    1. If Javascript is not listed in the Tools pane, show the JavaScript panel heading by selecting the following menu item:
        View > Tools > JavaScript
    2. Click the arrow on the JavaScript heading to show the tools beneath it.
    3. Click "JavaScript debugger". to show the JavaScript console/debugger.
    Regards,
    Charlene

  • Auto fill forms in Adobe Acrobat Pro 7

    Hi All
    This may have been answered already, if so I couldn't locate the answer I'm seeking and I apologize.
    I am currently working with Adobe Acrobat Pro 7 and the form I have has multiple combo boxes (drop down) on the form and I wanted to know if it's possible for me to link certain forms together so that when the information from combo box 3 is selected from the drop down menu it will automatically populate the information in combo box 12? Combo box 12 will have completely different information though.
    Here is my example: We have an upwards of 30 departments and with these departments are different contact names and with these contact names there is the phone number and the email address, all in different fields on the form...currently, I have made a drop down for the department and have everyone manually fill in the other information, however, now everyone wants to be able to auto-fill the other fields such as the contact for that dept, the phone number and the email address of that contact, based solely on the selection of the dept. combo box.
    Is it feasible?
    If it is, I'm an your everyday run of the mill admin asst and my Javascript skills are nil, so please let me know what to put and in what box.
    Any info is greatly appreciated. Thanks in advance!

    It is feasible, but does require some moderately advanced JavaScript, so it's not a simple matter of telling you where to place the code. There are a lot of details to consider, but a series of articles that should get you started if you decide to learn more is available here: http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle
    Otherwise, I would suggest finding a consultant to do this for you, if there's a budget for it.

  • Rotate document in Adobe Acrobat Pro

    Hi All
    How do I custom rotate a document in Adobe Acrobat Pro? I see that there is the option to rotate by 90 or 180 degrees but how do I rotate by just 1 or 10 degrees?
    Thank you for your help!

    Not possible to arbitrarily rotate the entire page even through JavaScript.  You can rotate objects on the page but not the entire page. You will need to either use  another Adobe Tool that can rotate pages in varying degrees like Photoshop or a third party tool.

  • Confirmation That I Understand What I Can and Cannot Do With Adobe Reader XI and Adobe Acrobat Pro XI

    I am new to working with Adobe Acrobat Pro XI and Adobe Reader XI.  Based on research I have done and questions answered in the Adobe Communities and Forum, I wanted to make sure I understand the limitations of these two products before I report back to my supervisor.  (We do not want to use XFA forms to obtain data in an xml file.)
    1.  Adobe Reader XI will allow a user to save a fillable PDF document to his/her local PC.  But it is only possible to save it as a PDF.
    2.  Adobe Reader XI will not allow a user to export the data in a fillable PDF into an xml file (unless you purchase the LiveCycle Reader Extensions license).
    3.  Adobe Reader XI will not allow a PDF file to be displayed in a .NET program unless the "Enable Protected Mode at startup" checkbox in Preferences/Security(Enhanced) has been unchecked.  (The previous version of Reader would allow this without disabling security.)
    4.  Adobe Acrobat Pro XI will allow a user to scan a form and create a fillable PDF.
    5.  Adobe Acrobat Pro XI will allow a user to save the fillable form as a PDF or XML.  However, it is the form that is being saved as an XML file.  Not the data.
    6.  Adobe Acrobat Pro XI will allow a user to export the data of a form into an xml file, an .fdf file, an .xfdf file, or a .txt file.
    7.  If a programmer writes a program in .NET to save the data of a PDF as an .xfdf file using IAC code, it will only work on a PC that has Adobe Acrobat (Standard or Pro).  If we need this executable to work on other PCs, we would need to purchase additional licenses of Adobe Acrobat - a license for every PC that needs to run the executable.
    8.  If a programmer writes  JavaScript code using trusted functions to get around security issues, that code will work on a PC that has Adobe Acrobat (Standard or Pro) but will not work on Adobe Reader XI.  Again, if we wanted our JavaScript to work, we would need to purchase Adobe Acrobat for every PC that would run the code.
    Please let me know if I have understood all of this correctly.  Thank you.

    Thank you for your comments to each of my statements, Irosenth.  That has been extremely helpful.
    I probably needed more of an explanation on statement #3.  I wrote a .NET program that used this line:   "Process.Start("AcroRd32", FilePath)" and when I ran the executable on a desktop PC that only had Adobe Reader XI on it, Reader would not open unless we unchecked the "Enable Protected Mode at startup" box.  I researched this and found several references to this being a problem in Readers since Reader 9.  I just wanted to make sure this was correct.  One article indicated that we could change the security setting within the registry using code and then change it back.
    Item #8 needed more information as well.  I had tried to use the "exportAsXFDF()" in a trusted function and it would never work in Reader.  It has an "F" in the availability column of the "Quick Bar" in the JavaScript API Reference which means it requires "forms rights".  I saw that; but it was not clear to me if that meant that a trusted function would work.  So, it looks like trusted functions will not get around security settings if forms rights are required.

  • Batch convert a series of web pages w/ Adobe Acrobat Pro XI?

    Is there the capability using Adobe Acrobat Pro XI to batch convert a series of web pages (e.g., feed to Acrobat a list of URL's to process, et al)?
    Any and all replies would be most welcome and appreciated.
    "Today's the best day of my life ... and NOW you're part of it!"
    Craig

    Dude,  (Why do I feel like I'm in the movie "The Big Lebowski"? [ret.])
    It depends on what you are feeding Acrobat and how you are feeding Acrobat.
    If it's a bunch of HTML files then you can create an Action to convert the contents of a folder.
    If it's just URLs then it's a little more complicated.  You might need to create a JavaScript to accept all of the URLs individually and then process them in order to the Create PDF from Web Page feature.
    Wait for more responses though because there are a lot of people who have probably done this already and have better ideas than the ones I propose.

  • Adobe Acrobat Pro in Windows 7 w/ Autocad in XP Mode- not working

    I'm running Autocad Arch Desktop (ADT) in Windows XP Mode within Windows 7, and have Adobe Acrobat Pro installed in Windows 7.  Unfortunately, no "Adobe PDF"  pulldown was created within ADT once Adobe Pro was installed, and there isn't any sign of Adobe in ADT (normally, Adobe automatically installs pulldowns within ADT once installed).  Adobe and ADT function normally otherwise.  Does anyone know how to get Adobe Acrobat Pro in Windows 7 to recognize and work with ADT in Windows XP Mode?

    Can you tell me how to set the defaults to Courier 10pt font?  I tried select all and it's grayed out, but that was after the
    fact.  Where are the original default presets?
    Thank you in advance.

  • Trying to update Adobe Acrobat Pro DC, but it's been stuck at 35% for a little over a day?

    Trying to update Adobe Acrobat Pro DC, but it's been stuck at 35% for a little over a day?

    Hi mattwillball,
    Could you please let me know what version of OS are you using.
    You might need to refer the following KB doc link for issue where Acrobat download and install process is stuck at 35% on MAC:
    Installation Prompt to Close SafariNotificati
    If this does not help, then please let me know if you get any other error message when installation is stuck.
    Hope to hear from you.
    regards,
    Anubha

Maybe you are looking for