Select formfield listvalue and autopopulate

Hi, hope someone can help me with this one.
I need to select a value in a list and then fill another Formfield with a specific value depending on what I selected in the list, in this case e.g. number of 1995 if I select the '12' in the 'Formfield_1' selectionlist value must be filled with the 1995 value and if I select the "18" in selectionlist value , the "formfield_1" must be autopoulated with the number 2995 I, how to solve this?

example:

var a = this.getField("SelectionsList").value = 12;

var b is this.getField("SelectionsList").value = 18;.

var c = this.getField("Formfield_1").value;

If (a = '12') event.value c = '1995 ';

If (b = "18") c event.value = "2995;

As you can se, I have trouble understanding how to get and fill the value in the var c

I chose to run it as a calcutlation of the properties 'Format' tab and Custom keystrokescripts in the selectionsList, perhaps it should not be placed there at all?, I want her to do the calculations when a selection is made through the SelectionsList

Lesson #1: Java and JavaScript are NOT the same thing.

Lesson #2: In the PDF files, you use only JavaScript code.

Lesson #3: The comparison in JavaScript operator is "is." The value assignment operator is '='.

If your code should be something like this:

var a = this.getField("SelectionsList").valueAsString;
if( a == "12") event.value = "1995";
if( a == "18") event.value = "2995";

Edit: fixed the last line of code

Tags: Acrobat

Similar Questions

  • difficult to select Contacts, calendars and tasks in iCloud with Windows 10

    When I select 'Contacts, calendars and tasks with Outlook' in iCloud, hit apply, then close and reopen it, it is not selected when opening. I am running Windows 10 and Outlook 2016 on a laptop HP spectrum 360.  I tried to uninstall and reinstall iCloud.  Help, please.

    You aren't the only one with this kind of problems.  See this thread, for example:

    iCloud and 2016 Outlook for Windows

    Read the answers.  One of them can help.

  • How can I connect my Mac to a network server? As in windows yo go to my computer / connection to a network drive, and then you select a letter and write the name of the server that you want to be logged

    I'm trying to adapt Windows to my new MacBook Pro with OS El Capitan.

    I work remotely for a company and I want to connect my Mac to the server of the company.

    My question is how to connect a MAc to a network drive with the permanently available connection.  For example, in my old HP I went to my computer / connection to a network drive. I've selected a letter and note the name of the server that I wanted to be connected to. The connection was then shown with my other drive hard 'sections '; I want to say C:, D: (for recovery), e: (for tools) and then connecting to the external server has been shown with the selected letter.

    There is no "letter" under OS X. It's a hangover very old of BACK, devices of mapping and volumes labeled mailbox.

    If you are connected to your corporate network, you should see the available network volumes listed in the Finder, in ' my computer > network ", or with the command K to connect to a server.

    You can create an alias for the volume and put it in the Dock, or leave on the desktop or put it somewhere else, and the next time you want to connect to this subject, simply double-click on it. You can also add the server address to your "favourites" in the connect to Server dialog box.

  • Details option is no longer appears in the window of security since the upgrade to El Capitan. Is there a way to selectively remove cookies and plugins?

    Since the upgrade to El Capitan, is no longer the details option appears in the Security window in safari preferences. Is there a way to selectively delete cookies and plugins, without deleting them all?

    Select the Privacy tab and click on details...

    Plug-ins can be managed in the Security tab, selecting the plugin settings...

  • I'm trying to export contacts as vcards icloud.  However, after that select the contacts and click on "Export as vcards" nothing happens.  Why?

    I'm trying to export contacts as vcards icloud.  However, after that select the contacts and click on "Export as vcards" nothing happens.  Why?  I tried this using edge and chrome and I run Windows 10

    I just tried with edge on Windows 10. I selected all the contacts, and then click Export, as vCards and nothing happen. Clicked on it again, still nothing. After 4 or 5 click on about 10 to 15 seconds he finally uploaded to the file Edge uses for downloads. I saw it happen before you go to a Mac using the Safari browser, but only 2 clicks were necessary.

  • Restore the options popup after selecting "Non-action" and choose to use this option, whenever a device is plugged in USB?

    Restore the options popup after selecting "Non-action" and choose to use this option, whenever a device is plugged in USB?

    Hello

    Did you follow the "AutoPlay Repair Wizard"?

    You can follow the link provided in the previous post. Later, check to see if the problem persists.

    Hope the helps of information.

  • HP Pavilion A6722SC: reboot and select proper boot device or insert boot media in selected boot device and press a key

    My computer has just stopped working and when I turned it on, it says I should change my hard drive. I did, but now the message is whenever I turn on my computer: reboot and select proper boot device or insert boot media in selected boot device and press a key.

    I have Hp Pavilion A6722SC. I have my 1st drive on the driver that I bought and I have the Boot Device Priority :

    1st boot Device [hard disk group]

    2 St boot Device [CD-ROM Group]

    3rd boot device [network startup group]

    4 rd boot Device [group Floppy]

    -> Disk Boot Priority group [not installed]

    -> Group of CD-ROM boot Priority [DSK02...]

    -> Group of HDD to boot Priority [DSK00...]

    -> Group network boot priority [not installed]

    I saw that many said I should disable the floppy, or I should have hard on the boot device 1 or driver, but this doesn't work for me. Someone who have solved problems of this kind? I need help!

    Thanks in advance.

    Sorry for the bad spelling.

    I needed a new OS... I had Windows Vista and I can't install it more, so I have to buy a new OS.

  • ASUS computer Unable to boot error "Reboot and select clean boot device or Insert Boot Media in selected boot device and press a key." "

    Original title: ASUS computer problem

    This morning I slammed my hard cutting computer. This afternoon, when I went to get on a black screen appears and says "Reboot and select proper boot device or Insert Boot Media in selected boot device and press a key." When I go to press the same message poping maintains and does not allow me to go anywhere else. My computer also makes a click when I try to restart. Any suggestion would be appreciated. Thank you.

    Adam

    The 'Ticking' noise is indicative of an HD program.  You can made a brick out of it.  The Message on the selection of the appropriate boot device indicates the tilt of the computer 'See' the HD.

    You see the HD in the BIOS when you start?

  • Why my selection of folder and Search Options is greyed out and not selectable?

    folder and search options

    Why my selection of folder and Search Options is greyed out and not selectable?

    http://www.Vistax64.com/tutorials/84215-folder-options.html

    http://www.Vistax64.com/tutorials/75447-search-options.html

    Read the tutorials above and the 'related links' here...

    See you soon.

    Mick Murphy - Microsoft partner

  • 'Restore gadgets installed with windows' this selection is gray and cannot be selected. What now?

    original title: Desktop sidebar gadgets

    When you download a new gadget which folder does download while it appears in the selection of additional gadget.  I can't find a record that relates to the sidebar or gadgets on my computer.  Ran a search, and they do not always show upward.  In addition, instructions to restore gadgets installed with the computer: do right click Select sidebar - select Properties - 'Restore gadgets installed with windows' this selection is gray and cannot be selected.  What now?

    Here are the steps to download and install new gadgets. http://freewindowsvistatutorials.com/meetWindowsVista/windowsSidebarAndGadgets/downloadAndInstallSidebarGadgets.htm. There is no particular place to download - usually, I download them to the desktop for installation and then I use C:\Users\personal myself (with a special created Gadgets folder it contains) to store the download for use later, if necessary (assuming that I save it at all). Also, this procedure explains how to remove gadgets using the sidebar, so you don't have to go looking to uninstall files or anything like that.

    As far as the original gadgets go, here's a thread on the same problem with a solution which is marked as an answer (even if the person who has posted never confirmed it worked):http://social.answers.microsoft.com/Forums/en-US/vistaprograms/thread/1a979f08-a67e-43a6-a87c-3fa02dff9be1.

    If this does not work, perhaps to restore the entire box will solve the problem.  Here's how:http://support.microsoft.com/kb/963010.  It can uninstall everything new gadgets that you added when it resets to zero (and I'm not positive that it will restore the original gadgets if he can fix the button greyed out), but if you accept that, it's worth a try.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Cannot start the computer, the error message "Reboot and Select proper Boot device or Insert Boot Media in selected boot device and press a key any."

    Original title: can't access my BIOS, but blocked on select boot device

    I have a laptop Toshiba Satellite Pro. I gave up some time ago and removed the HARD drive to see if has been affected by the decline, as that was my first thought. "When turned on the laptop back, the error message:" Reboot and select clean boot device or Insert Boot Media in selected boot device and press a key. My HARD drive is installed correctly, that am a qualified technician. The laptop goes directly to this error message, when turned on, so cnnot access to the BIOS. Help, please.

    Hi Ryan,

    Please contact Microsoft Community. I will surely help you this question.

    To better understand the issue, let me know if you have tried pressing the F12 key or the key that is used to start the BIOS on the computer?

    Method 1:

    You may need to press the key (which is used to start-up the BIOS) as soon as you turn on your computer before Windows starts. See the article for more information.

    http://forums.Toshiba.com/T5/Windows-7-knowledge-base/how-to-enter-the-system-BIOS-on-Windows-7-computers/Ta-p/275629

    Method 2:

    If the problem persists, I suggest you to return the item and check if it helps.

    What can I do if my laptop Windows 7 or Windows Vista does not start?
    http://forums.Toshiba.com/T5/computer-troubleshooting/what-can-I-do-if-my-Windows-7-or-Windows-Vista-laptop-won-t/Ta-p/285717

    If the problem persists, I suggest you to contact the Toshiba Support for assistance.

    http://support.Toshiba.com/support/home

    Hope this information helps. Reply to the post with an up-to-date report of the issue so that we can help you further.

  • When I select an album and play, the player plays a few songs then it stops with a highlight of the Red Cross on the song that it stops at,.

    There is something on the windows media player 12, I'm not comfortable with and would need help, when I select an album and the game, the player plays a few songs then it stops with a highlight of the Red Cross on the song she stops to, I now have to click on back so he can continue It is really comfortable, anyone with a solution? Thank you.

    Hello

    Generally, this problem occurs due to corrupted library files using Windows Media Player.

    Check out the link and follow the suggestions of John Rubdy:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/while-playing-a-playlist-i-get-an-error-a-circle/b1a742ac-899d-4b0a-90eb-c472a9542582

    Please let us know if the problem still persists.

  • I get an error. "reboot and select proper boot device or insert boot media in selected boot device and press a key" while using the hard drive.

    Replace drive hard hgst with seagate and when I replaced the hard drive from hgst orignial he says "reboot and select proper boot device or insert boot media in selected boot device and press a key" and when I tried to install OS it does not display the hard drives to install operating system.please help

    Hello

    Check your cable connections. If necessary check with the manufacturer of the motherboard System Support
    and Seagate Support.

    Make sure that settings/settings (BIOS/CMOS) often F2 that you start the computer is configured to start at
    on the CD/DVD first in the boot order.

    Seagate - Support
    http://www.Seagate.com/support/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Select the text and code lists

    I have a tabular layout with a field called KPI_ID, which is a number in my database table.  I want the user to be able to use a selection list that shows the descriptive text for this indicator number of KEY performance choose what KPI_ID they want.

    KPI_ID is defined as type "select list".  The type of list of values is "SQL query", and it is the query:

    Select kpi_desc,

    kpi_id

    KPI

    where the team =: P10_TEAM

    Everything seems OK, but when the user selects a KPI and save, the new value is not saved.  I used the debugger to determine that the KPI_ID is set to «»

    What I am doing wrong?

    APEX version: 5.0.2.00.07

    Database: Oracle Database 11 g Express Edition Release 11.2.0.2.0 - 64 bit Production


    Host: MaxApex (dedicated DB)Browser: Google Chrome Version 47.0.2526.106 m
    Themes: "Scarlet - 21" and ""Topaz"- 4"»Character of favorite Gilligan's Island: Mary Ann

    I found my problem.  In the process of "Updating the lines" I had defined KPI_ID as a "secondary key column.  That's why he let me not change this value.  I removed KPI_ID as a "secondary key column' and now it works well.

    As Roseanne Roseannadanna used to saying: 'never mind '.

  • Reboot and select proper boot device or insert boot media in selected boot device and press a key

    I have an Asus UX31 of Zenbook ultrabook. It is running Windows 8, I installed it via download, is not a physical disk.

    Recently, I ran Windows Update and he knew as usual, until the time of reset. It restarts, showed on the screen "install updates", but then finally started only the following error message:

    "Reboot and select proper boot device or insert boot media in selected boot device and press a key.

    As mentioned, I don't have a disc, my ultrabook is not a hard drive. Internal storage only that there is a 128 GB SSD. I went into the bios and check the boot settings and the SSD is correctly listed as the only option to start.

    I can only assume some question that's happened with the update of windows. I'm not sure of how to proceed now? ATM, I only have a weight £1000 :/

    Hello r,.

    Thanks for posting your query in Microsoft Community.

    By the description of the problem, I understand that you have problems starting from the computer to the desktop screen, it gives the above error message.

    I imagine how it could be frustrating when things do not work as expected. I appreciate your efforts to solve this problem.

    As this problem occurred after installing Windows Update, this could be the reason for the incompatible driver installed with the Windows updates.

    As you have already checked the settings for starting a disc SSD set correctly, I suggest you disconnect all the external device and restart the computer, check if are able to boot to the desktop screen.

    We will try the following methods and check if it helps.

    Method 1: I suggest you create USB recovery media as your laptop doesn't have the DVD Rom.

    If you're having problems with your PC, a recovery USB disk can help you troubleshoot and fix these problems, even if your PC does not start.

    Create an installation media for Windows 8.1
    http://Windows.Microsoft.com/en-us/Windows-8/create-reset-refresh-media

    Method 2: Once you create USB recovery media, auto repair:

    Follow the steps below to perform an automatic repair:

    1 restart the computer, wait for the logo of the manufacturer to check the option of start menu, it will usually F12.
    2. the start menu key can be different with each manufacturer. If you are unable to find the start menu button, you can consult the user manual.
    3. restart the computer, when appears the logo of the manufacturer, continue to press the Boot option menu key to enter the boot menu and change the option to boot in DVD ROM.
    4. Once you start your computer by using Windows 8 DVD or system repair disc, a black screen appears with the gray text "press any key to boot from CD or DVD". Press a button on any.
    5. Select the exact time and the type of keyboard.
    6. click on repair your computer in the lower left corner.
    7. click on troubleshooting, advanced option and then click on auto repair.

    Hope this helps, please reply with the status of the question to get help.

Maybe you are looking for

  • Can not change his usual helmet

    My iPad took all his helmet of the sound through the iPad.  How to return her through iPad?  Not got a lot of help to contact Apple.

  • How to enter the menu of the BIOS of the Qosmio G30

    How to enter my BIOS (Qosmio G30) esc? F2? F1? Thank you... Derk (Janie)

  • Review of the CLD, but CLAD is expired

    I want to take the CLD Exam but my CLAD certification has expired for months. Can I take the examination of the CLD? Or should I resume CLAD before trying with the CLD? Thank all

  • HP Envy 4502: HP Photo Creations

    The drivers for the printer installed correctly outside the HP Photo Creations, the download has placed an icon on the screen but when I click on it all I get is a blank screen. This can be corrected?

  • Can I print using HP OfficeJet J4580 wireless?

    I have a HP OfficeJet J4580 all-in-one, model CB780A connected to my desktop with Windows XP.  I also have a Compaq laptop with Windows 7 64 bit and wanted to know I print wirelessly on HP in the other room?