Help Debugging a JavaScript in Adobe Acrobat

Thanks in advance for your help. Below is a script that should hide the mailing contact fields. If the "WorkerMailingAddressChoice" check box is selected, the "WorkerMailingAddress", "WorkerMailingCity", "WorkerMailingState", and "WorkerMailingZipCode" fields are visible; otherwise those fields are hidden. The script is below:
var WorkerMailingAddressFld = this.getField("WorkerMailingAddress")
var WorkerMailingCityFld = this.getField("WorkerMailingCity")
var WorkerMailingStateFld = this.getField("WorkerMailingState")
var WorkerMailingZipCodeFld = this.getField("WorkerMailingZipCode")
if (event.target.value == “Yes”)  {
    WorkerMailingAddressFld.hidden = false
    WorkerMailingCityFld.hidden = false
    WorkerMailingStateFld.hidden = false
    WorkerMailingZipCodeFld.hidden = false
else   {
    WorkerMailingAddressFld.hidden = true
    WorkerMailingCityFld.hidden = true
    WorkerMailingStateFld.hidden = true
    WorkerMailingZipCodeFld.hidden = true
(I'm getting an error Line 6, at Line 7)
Any advice would be greatly appreciated.
Thanks

As an example, this line:
WorkerMailingAddressFld.hidden = false
should be changed to:
WorkerMailingAddressFld.display = display.visible;
and to hide:
WorkerMailingAddressFld.display = display.hidden;

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

  • The "File Edit View Window Help" menu disappears after opening Adobe Acrobat X Standard

    After installing Adobe Acrobat X Standard, when I run the program the "File Edit View Window Help" menu is visible for only a brief second then disappears.  I tried to press F11 or other functions keys to bring it back.  I also installed Adobe Acrobat X Pro which I also have a license for and it would do the exact same thing. Reinstalling the programs did not seem to resolve the problem.  Is there an issue inside the registry?

    Thank you for your comment.  However, F9 does not seem to work.
    When I press F9, the menu bar appears but the words "File Edit View Window Help" are still missing.  
    When I press F9 again the menu bar will close.
    This is a screen capture before the words "File Edit View Window Help" disappear.  After only about a second they are gone.

  • How to run script on Adobe Acrobat 9 Pro

    HI all i'm new to Adobe Acrobat 9 Pro Scripting, and I'm hoping someone can help me how i can run any javascript on Adobe Acrobat 9 Pro.  I have no idea which place (location) take script then run.
    Like Adobe InDesign CS4 script location=>
    Application>Adobe InDesign CS4>Scripts>Scripts Panel>JavaScript
    Run Path =>
    Window>Automation>Script then run
    Any insight is appreciated!
    Thank you so much adv.
    [email address removed by host]

    “All scripts are executed in response to a particular event. There are several types of events.” (Adobe, 2006, p. 40). You may want to execute your script as a console event. In this case, use the JavaScript Debugger console (Adobe, 2006, p. 21). For more information, read the manual Acrobat has provided online: Developing Acrobat Applications (Adobe, 2006).
    John
    Works Cited
    Adobe Systems Incorporated. (2006). Adobe® Acrobat® SDK 8.0 Developing Acrobat Applications Using JavaScript for Microsoft® Windows® and Mac OS®. Edition 1.0, November 2006. Retrieved on Jan. 5, 2012 at http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_devel oper_guide.pdf.

  • Adobe Acrobat 9 can't make pdf files in 2003 Word

    Hello, Can you help me?
    I purchased Adobe Acrobat 9 Pro four years ago when I went onto Windows 7 as I needed the 64 bit version. Prior to this I had Adobe Acrobat 7.
    Recently I have been unable to make PDF files in Word although it is working in all the other Word applications and through the HP scanner.
    It also won’t make PDF files through the Adobe programme and comes up with the message “Missing PDF files”and the repair command fails to save the problem.
    I am using Word 2003 but prior to now the programme has worked without a problem.
    Can you tell me how to solve the problem as I need the facility as I manage numerous websites for different charities.
    My serial number is 1118-1780-5717-0649-5947-1289 and I am reluctant to unload the programme incase I can’t reload it.
    I have tried to load Acrobat 7 onto my laptop which still has Windows Vista on it.  The serial number for this is 1016-1284-2194-6099-0208-1387 but it refuses to activate this.  Can you advise me on this ?
    I am desperate..
    Many thanks, Sheila 

    Pro's Safari Plugin is not updated for Mountain Lion yet.
    Remove the plugin and use Preview for now in Safari.
    Guide on removing Safari plugins: http://macs.about.com/od/usingyourmac/qt/safariplugin.htm

  • Adobe Acrobat 7.0 - invalid serial number

    I have a new computer so I tried to install Acrobat Pro 7.0 on my new computer but received a message saying it is an invalid serial number. I got the serial number from my products under my adobe id. Please help! I need my adobe acrobat pro on my new computer!!

    You need to get a special version along with a special serial number.  See the following...
    CS2: Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3 -
    http://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.htm l 
    https://helpx.adobe.com/creative-suite/kb/cs2-product-downloads.html

  • Adobe Acrobat 8 Isn't Working Right on my New iMac Either

    Adobe Acrobat 8 has two problems on my iMac. The lesser problem comes when I go into the Print command and click "Preview." I get a message that says that Preview isn't supported.
    The greater problem just cropped up as I was writing about my problems with Quicktime and Real Player: Acrobat tried to update itself and then gave me a message that says, "Cannot overwrite file /Users/(myname)/Documents/Update5/AdobeUpdater/acrobat8pro-en_US/AUMProduct.dmg . The file maybe be locked or you may not have sufficient access rights. Please make sure you have write access to this file." Can anyone help? Thanks.

    AdmrlLocke wrote:
    Adobe Acrobat 8 has two problems on my iMac. The lesser problem comes when I go into the Print command and click "Preview." I get a message that says that Preview isn't supported.
    Preview is not supported because building a preview of a print job under OS X involves creating a .PDF file. You already have a .PDF file open if you're using Acrobat, so there's no point creating a new one.
    The greater problem just cropped up as I was writing about my problems with Quicktime and Real Player: Acrobat tried to update itself and then gave me a message that says, "Cannot overwrite file /Users/(myname)/Documents/Update5/AdobeUpdater/acrobat8pro-en_US/AUMProduct.dmg .
    That's not a problem with Acrobat. The system is saying that you have a file named AUMProduct.dmg in place already, and you don't have permission to update it. You need to change the permissions on that file so that you can update it, or to use an account which has update permission. Or it might just be locked and you need to unlock it. Locate it using the Finder (you have the complete path to the file listed above) and see what permissions are on the file and whether or not it is locked.
    You might also just put the entire Update5 folder into the Trash and try updating again.
    The file maybe be locked or you may not have sufficient access rights. Please make sure you have write access to this file." Can anyone help? Thanks.

  • Adobe Acrobat 7.0.0 standard update for Windows?

    I currently have Version 6.0.6 and am trying to download the next version or fix of 7.0.0 but there only seems to be a swedish version. If I try to download 7.0.1 it tells me I need to down load 7.0.0 first. Help!
    Thanks!

    Hello there,
    I'm sorry to hear you're having trouble. Unfortunately, this forum is for questions relating to Acrobat.com (www.acrobat.com) and we can't help with problems experienced with Adobe Acrobat desktop software. In order for your question to be seen by those who are most likely to have a substantive answer for you, I recommend re-posting it to the Acrobat forum or doing a search in the Acrobat online help resources:
    Acrobat Help and Support:
    http://www.adobe.com/support/acrobat/
    Moderated Acrobat Users' forums:
    http://www.acrobatusers.com/forums/aucbb/index.php
    I'm sorry not to be able to offer more specific advice. Best of luck!
    Kind regards,
    Rebecca

  • Need setup adobe acrobat standard 8

    Hello,
    i search the setup for adobe acrobat standard 8
    Can you help me ?

    Hi,
    Unfortunately, Adobe Acrobat 8 standard is not available for download.
    You may download the Pro edition from the following link:- Download Acrobat products | 9, 8.
    To contact customer support please go to:- Contact Customer Care
    Note:- Please choose the product Acrobat.com and issue as Membership, account, payment- Click- "Still need help? contact us"- Choose contact option as- Chat.
    Regards,
    Nakul

  • Adobe Acrobat X Pro - Javascript for submit button

    Hi,
    I am new to Adobe Acrobat X Pro and I have just designed a fillable form and enabled user rights for reader, for them to send the form back as a PDF. I created the form with a submit button and have mailto:[email protected] but I want to know if it is possible to create a button that will run a javascript to bring up a persons Mircosoft Outlook contacts, so they can choose who they want to send the completed form too.
    Any help would be greatly appreciated.
    Thanks.

    See post #7 and #10 in the following topic: http://forums.adobe.com/thread/793083?tstart=0

  • Hi I've a big problem with adobe acrobat reader XI pro and I hope you can help me. The problem is; when I past copied text from some pdf books (not all of them) it past symbols only! wherever I past it! and even if I coped that text from another pdf reade

    Hi
    I've a big problem with adobe acrobat reader XI pro and I hope you can help me.
    The problem is; when I past copied text from some pdf books (not all of them) it past symbols only! wherever I past it! and even if I coped that text from another pdf reader (adobe pdf reader, internet browsers, ...etc.).
    This problem started to happen since yesterday when I installed adobe acrobat reader XI pro to try it before I buy it, and before that when I was using the free adobe pdf reader I was totally able to copy any text from any pdf and past it anywhere with nothing wrong.
    What can I do?
    thank you a lot.

    There is no product called Adobe Acrobat Reader Pro. There is
    - Adobe Acrobat Pro ($$)
    - Adobe Reader (free)
    Which do you have? And are you a programmer?

  • Adobe Acrobat 9.0 Pro crashes at start up: Runtime Error-please help

    I have Adobe CS4 installed on my Windows 7 PC. In addition, I have Adobe Reader XI and InDesign 6 installed. If I remember correctly, after I installed Adobe Reader XI, I uninstalled the version of the Reader which came with CS4.
    So here’s my problem: When I try to download a PDF that has been sent to me in an email or open one that already exists on my computer, this happens:
    Runtime Error!
    Program: C…
    The application has requested the Runtime to terminate it in an unusual way.
    When I click OK, I get this:
    Adobe Acrobat 9.0 has stopped working.
    If I try to Adobe Acrobat 9.0 Pro from my start menu, the same thing happens.
    This makes no sense to me because
    I don’t have the knowledge to figure this out. I have no idea what Runtime is.
    Prior to a computer meltdown a couple of months ago and a complete reinstallation of everything, these very same programs all worked just fine.
    I don’t understand why, when I try to open an emailed PDF, they don’t automatically open in Adobe Reader XI rather than Adobe Acrobat. Isn’t the general idea that people be able to open and view sent PDFs which they have been sent, which is what the Reader is for, and not usually edit them, which is what Adobe Acrobat is for?
    If, instead of trying to open the emailed PDFs, I save them to my computer, I can launch Adobe Reader XI and open them from within that program without any problem. That’s OK if I just need to view the PDF, but I need to be able to edit PDFs too, so I must get Adobe Acrobat 9.0 to work.
    Would reinstalling Adobe Acrobat 9.0 Pro help? Is there a way to reinstall that program only from the installation disks or would have to reinstall CS4 entirely?
    I cannot open Adobe Acrobat 9.0 at all, so any solutions which must be done with the program open are not possible.
    I would really appreciate some help.

    SOLVED!
    Resetting Internet Explorer didn't work, Reinstalling Acrobat 9.0 Pro didn't work, but changing a registry key did.
    Here's where I found the solution:
    Microsoft Visual C++ Runtime Library error opening PDF files - Microsoft Community
    Here is the relevant post, but before you try it, read my note below:
    Hi,
    This is known issue with Acrobat for several versions now, Adobe's current fix is just to update their software: http://kb2.adobe.com/cps/404/kb404597.html
    The problem is with the application data being misdirected.
    "The affected user has a redirected Application Data folder and as a result the network path containing the Application Data uses a UNC path that begins with \\. This UNC path causes Acrobat 9.0 or Adobe Reader 9.0 to incorrectly parse the Application Data path and give the error message."
    A potential Solution would be to go into the registry. Left Click type "regedit" and right click and run the program with "run as administrator". Go to Hkey_Current_User\Software\Microsoft\Windows\Current Version\Explorer\User Shell Folders and make sure see where "AppData" is pointing. If it is pointing to "%UserProfile%/Application Data" change it to point to "%UserProfile%/AppData/Roaming".
    BUT, be careful about one thing: This poster seems to have accidentally used forward slashes when he should have use back slashes. Look at the very last line of his post where he advises "If it is pointing to "%UserProfile%/Application Data" change it to point to "%UserProfile%/AppData/Roaming". You'll find, or at least I did, that this key has a back slash, not a forward slash, so changing what I found: "%UserProfile%\Application Data" to "%UserProfile%\AppData\Roaming" worked and now Acrobat 9.0 works fine.

  • I've installed Adobe Acrobat 9 Pro but can't figure out how to use it. Help!

    Isn't there anyone out there who can help me?  What about Adobe Customer Service?

    You can open Acrobat and select the key F1. That should open the help menu (it should be local on your hard drive). It is also the first item listed in the help menu. If you prefer, you can open the full manual in PDF form from http://help.adobe.com/archive/en_US/acrobat/9/professional/acrobat_pro_9.0_help.pdf. The manual is over 500 pages long and gives you a lot of information. There is a getting started section at the end of Chapter 1.
    However, at this point it might be worth asking what your expectation is for AA 9, similar to Anoop's question. A lot of folks try to use Acrobat for things it is not designed to do, though it may do them, and they get disappointed. So expectations can be a big factor. A general statement might be that the primary purpose of Acrobat and associated software is to create PDF representations of documents from other applications that you can share with others (most folks can read PDF files anymore). After the creation, there are a number of tools that can be used to enhance the use of the PDF, including form fields, security (for what it is), and minor editing.
    Hope this all helps.

  • No longer able to download pdfs, tried all the stuff on the help page, is this a result of the new version of Adobe Acrobat 10.1.3?

    Previously, I had no difficulty w/ downloading pdfs. Now all I get is a blank Firefox screen, with nothing else happening--no downloads window opening up like before, or anything else. I recently upgraded my Adobe Acrobat to 10.1.3, and I wonder whether this is related to that? Does FireFox not find the new Acrobat?
    I've gone through the things on the Firefox help page like changing download folder and renaming the whatever folder it was from what: rdp? to rdp.old. Does not effect problem.

    Thanks Matt. I finally seem to have got it working better now with having gone into the Preferences, Applications, and selected "USE Adobe Acrobat Pro (default)" It had somehow gotten switched to "USE Adobe Acrobat NPAPI plugin..."
    I admit to not knowing what I'm doing, but this switch seems to have made it workable again.
    Hope this maybe helps others...

  • Adobe acrobat pro 9 help button shows no table of contents

    When I open adobe acrobat pro 9 and select the help button the help window opens but there is no table of contents and if I try to search for a topic nothing happens... Any help here?

    Have you tired Adobe Acrobat 9 Pro ?
    If there are Icons in the upper left of the screen, try some of them.

Maybe you are looking for

  • Video or wmv file attachments

    I am unable to open or view many emails that have video or wmv attachments. I understand that Safari may not be the vehicle to enable this? Id there another browser that I should download?

  • FRA in use, backups written directly to a deduplication device

    Oracle 11.1.0.7 An FRA is in use to store archive logs and flashback logs.  RMAN full and incremental backups write directly to EMC's Data Domain, a deduplication storage system, this appliance replicates to a secondary recovery location.  The Data D

  • Business Rules:Non-oracle db connections not shown in the ADF-BC Facts sect

    Hi everyone I'm working with Oracle BPM 11.1.1.5.0 JDeverloper: 11.1.1.5.0 Database : SQL Server 2008. I'm trying to create some rules based on some value in my tables in the database. The problem: My non-oracle DB connections are not shown in my Bus

  • 500 Internal Server Error - Null Pointer Exception

    Hi, I am using a Struts application. I get the following error while clicking a button in a JSP page. The mapping has been provided in the struts config.xml file. What could be the possible cause? java.lang.NullPointerException      at org.apache.com

  • Amd/ati video drive

    Question.. i'm having a problem with my AMD/ATI VIDEO DRIVE.. It has been suggested to uninstall the program.. will my laptop run properly or how do i resolve this issue.. i no longer have a warranty it is almost 4 years old...