I have NO scripting experience but am attempting to create "cascading combo box" with two boxes.

I have copied and edited to the best of my ability several options but keep getting errors, mostly illegal character on line...
I do not have LifeCycle, merely Adobe Acrobat IX (and a trial version of Acrobat XI PRO) and the extent of my knowledge ends at placing fields, text, etc. . .
The scenario is as follows:
On the document, there are two combo boxes
1- "DeptName"
2- "Position"
The goal is to be able to select one of 15 different departments, and based on that selection, choose from between 2 to 15 different positions for that corresponding department.
Below is what I was hopeful would work, but alas - FAIL!!
If anyone could assist it would be GREATLY APPRECIATED!
myDeptNameValues =
"ADMINISTRATION – RSADMN (8171)",
"BEVERAGE – RSBEV (8174)",
"CATERING – RCCAT (8959)",
"CLUB – RSCLB (8174)",
"CONCESSIONS – RCCON (8961)",
"CONCESSIONS – RSCON (8173)",
"CULINARY – RSKIT (8177)",
"FACILITIES – RSFAC (6925)",
"RETAIL – RSRET (8175)",
"SUITES – RSSTE (8177)",
"VENDING – RSVND (8173)",
"WAREHOUSE – RSWHS (8173)"
this.getField("DeptName").setItems(myDeptNameValues);
var DeptData =
ADMINISTRATION – RSADMN (8171):["Teller","Security"],
BEVERAGE – RSBEV (8174):["Bartender","Barback"],
CATERING – RCCAT (8959):["Banquet Server",”Banquet Captain"],
CLUB – RSCLB (8174):["Cashier","Counter","Cook","In Seat Server","Runner","Stand Manager"],
CONCESSIONS – RCCON (8961):["Counter","Cashier","Cook","Runner","Beer Attendant/SMC","Stand Lead","Supervisor"],
CONCESSIONS – RSCON (8173):["Counter","Cashier","Cook","Runner","Beer Attendant/SMC","Stand Lead","Supervisor"],
CULINARY – RSKIT (8177):["Cook 1 – Entry Level","Cook 2 – Advanced Level","Cook 3 – Lead Cook","Kitchen Supervisor","Steward"],
FACILITIES – RSFAC (6925):["Lead – Blower/Press","Cleaning Services Worker"],
RETAIL – RSRET (8175):["Warehouse","Supervisor","Warehouse Supervisor","Vendors/Hawkers","Senior Supervisor","Associates"],
SUITES – RSSTE (8177):["Suite Attendant","Ice Cream Cart Attendant","Runner","ReOrder Clerk","Suite Captain","Pantry Supervisor"],
VENDING – RSVND (8173):["Vendor","Vendor Filler","Alcohol Compliance Supervisor","Auditor","Level Supervisor","Senior Supervisor"],
WAREHOUSE – RSWHS (8173):["Runner","Supervisor"]
function SetFieldValues(cDeptName)
this.getField("Position").setItems(DeptData[cDeptName]);
The above code was placed in the document script.  Within the format area of the "DeptName" box, I have the following code placed in the keystroke script.
if( event.willCommit )
if(event.value == "")
this.getField("box2").clearItems();
else
SetFieldValues(event.value);
I have spent the past four days, more than 18 hours in the last two alone trying to nail this down and I can't explain how completely defeated I feel, not to mention frustrated.
Again, thanks for your help!!

I suppose I am not meant to figure this out.  I am trying my absolute hardest to accomplish compiling this document without having to resort to asking someone to do it for me as I have noticed in a few other threads, but it just seems to get more frustrating.  I have accomplished the first thing I set out to do and I completely appreciate your assistance with that.  My issue now is that i have other text fields I want to automatically fill based on the selection of the very same DeptName combo box.  I can make the cascading/dependent box work with the initial DeptName box, or all the additional text fields with the DeptName box, but cannot seem to accomplish having them work together.  I have been working daily, reading blogs/forums, watching videos all in an effort to complete this before it's needed on Feb. 2. 
Is it possible to make 7 text fields and a combo box(B) fill based on the selection of a separate combo box (A), and then have 5 more text fields automatically fill based on the selection from the secondary box (B)?  I can make it all happen individually, meaning only the text fields for one box or the combo box (A to b) but not in conjunction.
http://1drv.ms/1GDpESS
This is the file, if it helps to see what I'm hoping to accomplish

Similar Messages

  • Showing as have an unread message but I haven't got one. Same with email . Tried turning phone off and holding the power off and centre button but still showing as unread .

    Showing as have an unread message but I haven't got one. Same with email . Tried turning phone off and holding the power off and centre button but still showing as unread . Any one know how to get rid off this ?

    Showing as have an unread message but I haven't got one. Same with email . Tried turning phone off and holding the power off and centre button but still showing as unread . Any one know how to get rid off this ?

  • Another site already exists at . Delete this site before attempting to create a new site with the same URL

    Hi Everyone,
    It would be great if you can help me with the below.
    Few days ago one of our content db went into suspect mode.  Our DB team had resolved the issue. But one of the sites that was created probably around the same time is no more available. When I try to create a site on the same URL, I get the following
    error.
    Another site already exists at <URL>. Delete this site before attempting to create a new site with the same URL
    When I try to delete the site or if I try to view the details of the site using Central Administration, I can find the site, but it doesn't display any details like Title, DB Name etc.
    If I use stsad -o enumsites command to list ll the site, for the given site I get the following error:
    <nativehr>0x80070002</nativehr><nativestack></nativestack>There is no Web named <URL>.
    I am not even able to delete it using Powershell.
    Please suggest.
    Thanks,
    Uttkarsh

    You might be dealing with orphaned site. Go through the following blog post and see if it helps you delete the orphaned sites.
    http://www.cjvandyk.com/blog/Lists/Posts/Post.aspx?ID=299
    Amit

  • What do you need to do to your account in you have a US plan but are going to Canada for a day or two?

    If you have a US plan but are occasionally going into Canada for a day or two at a time, what do you need to do to make sure you are not paying for additional calling and texting activities?

    Canada plan.

  • HT204053 Can you merge two Apple IDs into one?  It was a common issue caused by the iPhone 4 and has been corrected, but transferring purchases in iTunes is a pain with two IDs.

    For a brief time when iPhone 4, iOS 4 came out, many of us ended up with two Apple IDs.  I want to know if anyone can please provide me with simple step-by-step instructions on merging two Apple IDs into one?  It would make transferring purchases on iTunes much easier and reliable.  I realize i desperately need an iOS update, but i had no laptop for over two years!  I'm posting a cry for help on that in another community.  Thank you all.

    No,
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • Please help with settins. I have Cox w/ 25mbps but can't get more than 18 mbps with EA4500.

    I have Cox broadband and I am using a Motorola Surfboard 6141 modem.  When I connect the ethernet cable (cat5) directly to my computer and run a speed test I get 25 to 32 mbps consistenly, but when I connect my EA4500 and run the speed test, I consistenly get 18 mbps.  I have reset the modem and tried different channels with no luck.  For some reason the router seems to be capping the speed at 18mbps.  Any help would be appreciated.  Thanks!

    @No_SCREENNAME@
    There is a need to check if you have the latest firmware installed on the router. Try changing the router’s IP address to 192.168.2.1 or 10.10.10.1 to further isolate the issue; Motorola modems at times have the same IP address range with the router causing conflict. Please try to disable all Firewall and Anti-virus software installed on your computers. You can also try to set the MTU to 1365. Do you experience this problem on the both wired and wireless computers connected to your router? Knowing this information can help you to further isolate the problem.

  • I have downloaded Firefox 5.0.1 4 times but the 3.6.19 version still shows up in the "about Firefox" box. Firefox says I have the latest version, but it just does not reflect it in the "about" box.

    When I tried the 2nd, 3rd, and 4th time to download 5.0.1, Firefox states that I have the latest version installed, but it still shows up as version 3.6.19 in the "about Firefox" box. And this older version is also reflected in your "educated guesses" about my current browser below.

    If you have problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the DMG file to the desktop
    * Firefox 5.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • I have used migration assistant but new profile is created, how do i merge into one

    I have recently purchased Mac book and have used migration assistant to transfer files from my old windows PC.
    Due to some issues when using migration tool i had to transfer in segments, each time i did this a new user was created.
    I have asked for  some help and was advised that users cannot be merged however the files can be shared via dropbox.
    I have received instructions as to how to do this but am stuck as once I get to the point of dropbox, I do not know what step to take next to add files into dropbox?.
    Below are instructions
    Pick a User Account your going to keep, make sure it's a Admin account and if need to, log into another Admin account and make it so in System Preferences > accounts.
    One logs out of their current account by using the Apple menu > Log out.
    Next while in one of the accounts your later planing on removing, go to the Finder > Go > Computer and window opens.
    Open  the MacintoshHD partition, then the Users folder and the User Account  you plan to keep, then the Public folder and then locate the DropBox  folder for that User. Any files placed in there will change permissions  and be accessible to that user when you log into it.

    The Dropbox folder is a subfolder of the home folder, which has the same name as the user account. It's under the Users folder at the top level of the startup volume ("Macintosh HD," unless you gave it a different name.)

  • HT1349 My  ipod touch 4th gen, will not let me access facebook or you tube it just takes ages to load then fails.  I have reset the ipod but its still doing the same.  Its only two months old, does anyone know how to fix it?

    My sons ipod touch has stopped letting him access facebook or you tube.  On entering the app or going in via safari it just states loading for ages then fails, I have reset it for him, but it hasn't helped.  Is this a common problem?  It is only 2 months old.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       
    also
    Not Charge
    - See:      
    iPod touch: Hardware troubleshooting
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar 

  • HT1349 I have a new laptop but cannot get my old itunes on it with my library please help

    Please help me get my old itunes on to my new computer, yes it is authorised but I cant get my music or anything??

    This issue does not have anything to do with AirPort networking. You may find that you will get better assistance if you repost it in the iTunes area.
    However, in the mean time, what is the make & model of both your "old" and "new" computers? Was both the iTunes Library and Media Folder located on that old computer? Do you use iTunes Match?

  • I have an MP3 file but would like to create a new one. Please help!

    I would like to take a current MP3 that I have on file and create a new MP3 using only the first 20 seconds of the original. How do I do this?
    (I have iTunes and another program called something like iGarageBand)
    Thanks!

    How do I open it in GarageBand
    Create a new basic track, then drag the MP3 into the
    track. Use command-T to split the track where you
    want.
    and how do you convert
    it back to an MP3 in iTunes?
    Use "Export to iTunes" in GarageBand. The file in
    iTunes will be an AIFF; use "Convert Selection to
    MP3" in the Advanced menu to convert it to an MP3.
    Your posts have been so helpful, thank you!
    I thought that it would have been more straightforward in how to delete the rest of the track... I guess I need a little pointer in that area too.
    So far, I've imported the track and split it at where I'd like. After that, I have no idea on how to delete the rest of the track. So... how do I do that?
    THANK YOU!!!

  • I have an apple account but would like to create a new one for my mum on my computer how do I do this ?

    I Have my own Apple ID on my computer and would like to create a new one for my mum on my computer so I can transfer all her contacts etc. How do I do this ?

    You can create a new iTunes account on your computer's iTunes or you can do it via http://appleid.apple.com : iTunes: How to set up an Apple ID within iTunes
    If you don't want to give credit card details before the account can be used in the iTunes store then follow the instructions on this page : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method

  • I have an adobe ID but can't log in on Digital Editions with it. Only allow my 3M login to show

    I've been trying to authorize my devices on Digital Editions but it won't allow me to use my Adobe Log In - will only show my 3M Cloud Library information. How can I get the Adobe ID back? I've uninstalled and reinstalled DE many times and I feel like I'm running in a circle

    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")

  • HT4848 I have Mountain Lion installed but it'll only create a recovery drive on Lion. What issue might I be having?

    Thoughts?

    As you have the installer on a DVD, you can do a trick that consists in formatting the hard drive, and then, install Mountain Lion.
    First, make a backup of your files with Time Machine > http://support.apple.com/kb/HT1427 I recommend Time Machine because it will be easier to restore your files later.
    Then, insert the DVD with Mountain Lion and hold the C key while your Mac is starting, so you will see a window with different options. Open Disk Utility, choose Macintosh HD in the sidebar, go to Erase tab and erase the drive.
    After erasing the drive, you can install Mountain Lion. Close Disk Utility and install it. During the initial setup, it will ask you to restore your files, so plug the external drive with the backup and follow its steps. Note that PowerPC apps aren't compatible

  • I have created a .pdf form with text boxes, but the recipients are unable to fill in their answers.

    How can I distribute a form with text boxes so that the recipients are able to type into the boxes?

    This forum is for the Adobe FormsCentral (formscentral.adobe.com) which is a service that allows you to create, collect and analyze data using an online web form. You should ask PDF related form questions in the Acrobat forums: http://forums.adobe.com/community/acrobat/forms
    I'll move your post to that forum so you don't need to retype it. They can help you out...
    Randy

Maybe you are looking for