Simple JS works in Acrobat 7, but not 8 - why?

I have a simple form with 2 fields: "myname" and "phone". "myname" is a drop down list populated with 3 names. I want to be able to populate the "phone" field with a phone number corresponding to the "myname" field automatically.
I have the following JS attached to the calculate event of the myname field. This works perfect in Acrobat 7.0.9, but does not work at all in Acrobat 8.0 professional or Adobe Reader 8. Does anyone know why?
switch (myname.rawValue){
case "Beth Voigt" :
phone.rawValue = "431-3833";
break;
case "Bobbie Hartfiel" :
phone.rawValue = "431-2019";
break;
case "Dave Brown" :
phone.rawValue = "431-2448";
break;
default : phone.rawValue = "";
event.newText = myname.rawValue;

I was just asking where those scripts are located.
You can configure Chrome to use Reader instead of its built-in viewer: http://blogs.adobe.com/vikrant/2010/12/use-adobe-plugins-to-view-pdfs-inside-google-chrome /

Similar Messages

  • Javascript works in Acrobat Pro but not in Reader

    Hello,
    I have created a form in Acrobat Pro that works fine in Pro and seems to work in reader. However, when I open it on the site and it loads up in the browser window the form then messes up when it gets to any one of these 2 scripts:
    1.
    var a=this.getField("Parking Passes")
    if (a.value>=1)
    {event.value=1}
    else
    {event.value="0"}
    2.
    var a=this.getField("Additional Passes")
    if (a.value>8)
    {event.value= (a.value-8)*25}
    else {event.value="0"}
    After one of these scripts is processed then the field for script 2. (a total of this script) is summed with other fields and the total field goes to only the amount of the script 2. field. What can I do to fix this. It seems to work outside of the browser when I open it in reader or acrobat pro but never in the browser window?
    Thank you!
    Joe

    I was just asking where those scripts are located.
    You can configure Chrome to use Reader instead of its built-in viewer: http://blogs.adobe.com/vikrant/2010/12/use-adobe-plugins-to-view-pdfs-inside-google-chrome /

  • Simple Script works on 10.6 but not 10.5.8

    Hi,
    Brand new to Applescript...I made a simple script (saved as an application) to rename Excel Sheet Tabs and it works on my MBP (10.6.2) however when I try sharing with other users (10.5.8), it fails to carry out properly. It opens a blank workbook rather than the "test.xls" workbook and won't go any further. Am thinking it might be due to:
    1) where the script and .xls file were originally created/saved?
    2) 10.6.2 vs. 10.5.8?
    3) method of sharing? Tried attaching to Mac OSX Server Wiki, NAS and e-mailing but still wouldn't work.
    here's the script-
    tell application "Microsoft Excel"
    try
    open workbook workbook file name "test.xls"
    activate object worksheet "names"
    set myRange to range "A2" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 3 to myName
    set myRange to range "A3" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 4 to myName
    set myRange to range "A4" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 5 to myName
    set myRange to range "A5" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 6 to myName
    set myRange to range "A6" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 7 to myName
    set myRange to range "A7" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 8 to myName
    set myRange to range "A8" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 9 to myName
    set myRange to range "A9" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 10 to myName
    set myRange to range "A10" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 11 to myName
    set myRange to range "A11" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 12 to myName
    end try
    end tell
    Any suggestions will be greatly appreciated! THANKS!

    more info:
    a co-worker with a MacBook (10.5.8) was able to download the script and .xls file from our server and it worked...
    An eMac (10.4.11) was not able to run the script.
    All machines are running 2008 Office for Mac

  • Embedding video, works on my computers but not theirs, why?

    I have made a flyer that has an embedded video clip using Acrobat Pro 9 Extended.  It opens and plays ok on Professional Extended and Reader on one computer, also opens ok on Professional (non extended) and Reader on another computer.  I emailed the file to my client and he only has Reader.  He tried it on his computer and some other computers with Reader and said he gets an error (see below) which comes up when he opens it and doesnt even show the PDF at all.  He said he upgraded his Readers to the current version and still gets the error.  What else could be causing this?

    it only charge if itunes is installed on the computer
    for some reason

  • The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    Hey thanx for the help, it worked like a charm.
    I think firefox changed the application lay out, as I used to be able to choose my PDF opener from the list at " Adobe Acrobat Forms Document' where I could choose Nitro-PDF reader, but it has now moved all the way to the bottom like you suggested to the obvious place of "Portable Document Format" section.
    If someone didn't tell me , I wouldn't have scrolled all the way down to be able to find it... it really should be with all its cousins up the top...
    Cheers again..

  • Actionscript works in IDE,projector but not SWF

    Hello, I'm atempting to create a swf that loads in a
    controller swf and accesses some of the information contained
    within the load swf. My main timeline is pretty simple.
    var preloader_mc:MovieClip =
    this.createEmptyMovieClip("preloader_mc",
    this.getNextHighestDepth());
    var labelcontainer:MovieClip =
    this.createEmptyMovieClip("container", this.getNextHighestDepth());
    var label:TextField = labelcontainer.createTextField("label",
    1, 0, 365, 150, 20);
    var TOCcontainer:MovieClip =
    this.createEmptyMovieClip("TOCcontainer",
    this.getNextHighestDepth());
    var TOClabel:TextField =
    TOCcontainer.createTextField("TOClabel", 1, 0, 300, 150, 20);
    then I have an onenter frame function that access the
    variable contained within the loaded swf.
    loadMovie("xml_controller.swf", preloader_mc);
    onEnterFrame = function () {
    vTime =
    this.preloader_mc.container.controlBar.timeView.label.value;
    this.label.text = vTime
    When I test the movie I see the time displayed and everything
    is ok. When I create a projector file I see the time display. When
    I try to run the swf, in a browser or straight from explorer All I
    see is undefined for the values.
    Anybody have any ideas why this would work in two
    environments but not the third?

    I saw this issue with a website I did. Sometimes the code
    would work no problem in the projector but fail when I published to
    the site.
    Does the xml_controller.swf refer to _root anywhere? If you
    have not locked the root and there is something it needs to access
    locally it won't be able to find the item because the _root it is
    referring to is now the load.swf movie

  • How do I troubleshoot installation/distribution of a LabVIEW .exe which processes data using Matlab when it works on some computers but not others?

    I've been given the unenviable task of troubleshooting and installing/distributing software written by a former co-worker. I've modified the LabVIEW code and built an .exe file. I've successfully installed the Labview .exe file on several computers, but it won't work on some others. What's more baffling is that I installed it successfully on one computer, uninstalled it, and tried reinstalling it with no success. In fact, it's a new error (Dr. Watson for Windows NT application error). It doesn't help that I have different versions of LabVIEW and Matlab on the target computers. Some have LabVIEW 5.1, some
    have 5.0, and some don't have it at all. Some have Matlab 5.2, some have 5.3 (R11) and some have 6.0 (R12). It's also not clear to me where the Matlab m files should be located. I'm not sure if it's a LabVIEW Runtime Engine problem, or if it's a Matlab problem. I've also wondered how LabVIEW and Matlab talk to each other. When LabVIEW calls Matlab, it seems that Matlab is running in the background. In other words, clicking on the Matlab Command Window and typing "whos" or any other command/variable doesn't work.

    Jay del Rosario wrote:
    >
    > How do I troubleshoot installation/distribution of a LabVIEW .exe
    > which processes data using Matlab when it works on some computers but
    > not others?
    Poke around zone.ni.com and
    http://digital.natinst.com/public.nsf/$$Search/ .
    Good luck, Mark

  • Site works in the app, but not in the browser.

    Hello iWeb experts,
    I've got problems.
    Last night I published my site. And while it appears, and functions, properly in my iWeb app, it doesn't do the same in Safari, Firefox, and Internet Explorer.
    Two issues...
    FONTS
    I chose Bellamie, Univers Condensed, and Marydale as my fonts. From reading these forums, I've discovered those won't wysiwyg on other computers if the fonts aren't available and open on them. So my two choices are to make every bit of text a graphic or to use a set of more universal fonts, correct? So my questions are...One, is there a list somewhere of fonts that will work in any browser? And, two, is there a short-cut, or easy way to transform type into a graphic without having to create image files?
    FUNCTIONS
    Here are the functions that work fine in iWeb but have gone haywire in all of the browsers I tested...
    • The type in one nav link appears smaller than all the rest.
    • Some links are active, others are not.
    • Rollover highlighting works on some links, but not others.
    • Most of the rollover links appear in the proper static color, a few do not.
    I've tested these functions on three Macs, one PC, and in the three browsers mentioned above. All of them show the exact same problems. So something must be going wrong with iWebs coding, or my host server musn't like iWeb.
    Any thoughts, suggestions on these two issues? Thanks much for any advice.
    John
    PS - For reference, see: www.johnrunk.com

    Fascinating, Kirk (+he types with one raised eyebrow+).
    QuickTimeKirk wrote:
    When I drag across your page most of your links do not change. The "text" portion of them doesn't change, either. Something is covering them.
    I can see that. But for the life of me, I don't know what could be covering those links. In my app, when I click in the area of the links, the type is the first item selected. Unless, possibly, it could somehow be the faint reflection of my black-and-white image (me & the ground I stand on). Hmmm...
    QuickTimeKirk wrote:
    Single click (outside the boundaries of your page contents) and an "outline" will appear. It shows the image file dimensions and locations.
    This I don't see. An outline? As in "an object outline," or as in "a list of dimensions and locations?" When I click outside my page contents, I get nothing.
    Thanks, QTK. I truly appreciate your troubleshooting here.
    John

  • Can get the AirPlay to work off my computer, but not my iPhone or iPad. I have the latest software.  Airplay logo never appears on iPhone or iPad.

    Can get the AirPlay to work off my computer, but not my iPhone or iPad. I have the latest software.  Airplay logo never appears on iPhone or iPad.

    Try here  >  http://support.apple.com/kb/TS1538

  • HT5787 How can I change an old email to a new one? For some reason my old email comes up on my iPhone - and I don't get access to change to my new email which I have on my iCloud account on my pc. My AppleID works on my pc, but not on my iPhone!

    How can I change an old email adress on my iCloud accout to my new email (the same as on my pc), as long as my Apple ID works on my pc but not on my iPhone?
    Br
    Finn

    You would have to change it back to your old email address in order to turn off "Find My iPhone" on your devices. After you changed it back to your old address and deactivated "Find My iPhone" (activation lock) you could change your Apple ID to your new address again. Now it should wok on all your devices.

  • LR 5.6 on Mac desktop all of a sudden will not read any card from any reader but will work on my laptop. I can work on previous images but not import new ones. Even if I create a catalog on laptop and import to my desktop on a thumb drive, the images are

    LR 5.6 on Mac desktop all of a sudden will not read any card from any reader but will work on my laptop. I can work on previous images but not import new ones. Even if I create a catalog on laptop and import to my desktop on a thumb drive, the images are only accessible as long as the thumb drive is inserted.

    Sounds like you may need to repair the Disk Permissions on your drive where your images are stored.

  • I have a bluetooth headset that only works in phone feature but not in itunes or apps on my iphone, please help

    I have a bluetooth headset that only works in phone feature but not in itunes or apps on my iphone, please help.
    It works fine through my macbook, can't find anything in settings on iphone to resolve problem

    The headset has to have A2DP capability, which most (I believe) do not.
    http://en.wikipedia.org/wiki/Bluetooth_profile

  • When i burn videos to a dvd-r disc it works on my macbook but not on a windows/pc or my dvd player. How can i make it work on all the above and not just a mac product?

    when i burn videos to a dvd-r disc it works on my macbook but not on a windows/pc or my dvd player. How can i make it work on all the above and not just a mac product?

    Unfortunately, the recording & movie industry does not respect the rights of the people who make them money, and thus you can only use the paid-for content in ways they see fit. Even if I lived in a bunker where no one else could possibly see the movie I paid for, therefor I'm not 'sharing it illegally', I would still not be allowed in a blue moon to copy that movie to DVD for TV viewing. Someone will tell you to get an AppleTV. How about Apple give us one for free? Until this changes, people wanting to use their content in multiple locations will continue to download music & movies via torrents, legally or illegally.

  • I-pod touch works on a Mac but not a PC

    Please help! My I-pod touch works on a Mac but not a PC. When hooked up to a PC, the device is not recognized in I-tunes message, says I-pod in recovery mode and to restore, after checking update and restore, receive unknown error message (9). Have tried unistaling and reinstalling I-tunes, using different USB ports, creating new user, restarting computer, using different PC, and trying to reset by holding sleep/wake and home buttons all to no avail, very, very frustrated, everything is fine on a Mac!!

    I have CA Internet Security Suite Plus 2010, version 6.0.0.264.
    I was wondering about that one in particular.
    Try configuring you CA as per kalda01's instructions in this post:
    http://discussions.apple.com/message.jspa?messageID=10525876#10525876
    (Sometimes switching the security software off doesn't help, but doing the configuration does help. Not sure what's afoot with that, but it has happened with other security-package problems with iTunes in the past.)

  • When I send an email with bcc recipients, the bcc does not show in my sent mail so I can't reference back later who I sent the email to. Worked in Snow Leopard but not in Yosemite. Please advise if their is fix for that.

    When I send an email with bcc recipients, the bcc does not show in my sent mail so I can't reference back later who I sent the email to. Worked in Snow Leopard but not in Yosemite. Please advise if their is fix for that.

    Did you select View->Bcc Address Field from the menu bar?

Maybe you are looking for

  • Issue while insert and update data to DB tables

    Hello all, i am having an issue while insert the data to DB table. my scenario is DB1 to DB2. i had a sender channel with select query which fetches data from DB1 and inserts to DB2. so the select query will fetch the records that were INSERTED to DB

  • CR XI R2 Sp6 - How do you change the default printer used by the Viewer?

    CR XI R2 Sp6 .NET VS2005, C++ The app selects printer for the job as m_Report->PrintOptions->PrinterName = ss_Device; This works nicely for printouts to the printer, but is ignored by the viewer. There, the machine default printer is always selected

  • SAP NetWeaver Sneak Preview and Trial

    Hi, I am new to SAP Netweaver Enterprise portal (java) I donloaded  SAP Full Java Edition-Trial -SAP NetWeaver 04 SP16. which is with out visula composer support. There is another SAP NetWeaver Sneak Preview and Trial. Which with visual composer supp

  • WLS with Cocoon

    Has anyone tried using Apache's Cocoon for managing web publishing? I've has a go with Xalan and Xerces, and been pleased with these to date. I've now come across Apache's Cocoon, and would be interested to here the opinions of anyone who has used it

  • How to get which fields are currently displayed by ALV?

    Hi , I have a program which displays list in the form of ALV . I have a parameter on the screen which takes the layout name from the user. At the same time I have the parameter which takes the filename from the user. Now the program should write only