Drop-down menu to complete textfield

Hello

I think it should be pretty simple to do... but I can't figure out how to get my textfields values change based on the selection of the menu drop down.

Here is an example of what I'm doing...

I have a drop down (combo box) and two textfields

[drop] - DropDownList1

-Item: Lun

-The value of exports: Lun

-Item: Mar

-The value of exports: Mar

-Item: sea

-The value of exports: sea

[textfield] - TextField1

[textfield] - TextField2

Now I want the TextField1 to display the 'kills' if 'My' is selected in the menu drop down and

TextField2 to display "Wed" If 'My' is selected...

I can't understand what I'm doing wrong.

I have this javascript under the tab "Actions" (the ComboBox)

Actions

-Mouse exit (Select Trigger)

-Run a Javasript (Action of selection)

{Switch (DropDownList1.RawValue)}

'my ': case

TextField1.rawValue = "Tuesday";

TextField2.rawValue = "sea";

break;

'kills ': case

TextField1.rawValue = "sea";

TextField2.rawValue = "play";

break;

case study 'sea ':

TextField1.rawValue = "play";

TextField2.rawValue = "Friday";

break;

}

Hello

Your code is a bit awkward as he calls more code is needed in respect of the extra cost calculate event. If you have changed your code for this you can do probably all in the comboBox code

var text1 = this.getField ("TextField1");

Var Text2 = this.getField("TextField2");

If (event.value is 'My')

{

Text1. Value = "Tuesday";

Text2.value = "sea";

}

Else if (event.value == "Kills")

{

Text1. Value = "sea";

Text2.value = "play";

}

but as I said it's just an optimization that could be made that it would keep all the code in one place, making it a little easier to maintain.

Concerning

Malcolm

Tags: Acrobat

Similar Questions

  • Attempt to bind the drop-down menu to dynamically fill Textfield

    I had trouble to come with the script for calculating appropriate for this question and I was wondering if anyone would be able to help me.

    Basically what I'm doing, it's down a product Option Drop (let's call it "RS1") to dynamically fill a separate price/text ("Price RS") field based on the selected product in the drop down menu.

    Product in the menu options drop-down are 'single' and "Double".

    If I select the option of simple product, he would fill in the price with a price $345,00 field. If I had to choose the Double product option, it would enter the price with a price $565.00.


    The intention is to multiply what fills pricing by a separate drop-down field that I already have in place that measures the quantity of the item to get a total final for this order of products.


    I know this should be relatively simple, but I can't get my calculation script to work for the life of me. Any help is greatly appreciated!

    You can use this code as a custom text field calculation script:

    var v = this.getField("RS1").value;
    if (v=="Single") event.value = 345;
    else if (v=="Double") event.value = 565;
    else event.value = "";
    

    Make sure that you set the option to validate the value selected from the drop-down field immediately for the calculation to occur as soon as the selected takes place in the menu dropdown.

  • Drop-down menu of Firefox address bar Sporatically stops working

    I had this problem for about a year and some parts of the year are worse than others, and now, according to the latest update of Firefox, this problem is at its absolute worst.

    The drop-down menu in the address bar of Firefox sometimes stops displaying my newest and popularly seen the websites that I have visited. Whenever I have updated Firefox, the problem goes away and he used to stay at the gap to end of weeks in a row, but now the drop stops working almost whenever I close Firefox after this last update a few days earlier.

    This problem persists in the Mode of Firefox safe and apparently appears randomly any plugins/extensions I can I have installed/enabled.

    I am at a complete loss here and would appreciate any help because this drop in the address bar is one of my favorite features in any browser, and it becomes annoying to have to reinstall the plugins more (when I use the Sync feature to reinstall the plugins, the problem is even worse).

    For problems with the file places.sqlite (bookmarks, historical) database, you can check in the Firefox profile folder.

    If the extension of Maintenance of places cannot repair the database places.sqlite file remove all places.sqlite files in the Firefox profile folder to rebuild the database places.sqlite latest JSON Firefox backup in the folder bookmarkbackups.

  • Problem: InDesign CC, I can't click any menu drop-down menu, or click in the fields

    Just installed and updated InDesign CC on win7 x 64. In the dialog boxes. If I want to click with the mouse to say on a drop down menu to change inches. Nothing happens. Also if I try to click in a field to type a value. nothing. Ditto for up or down arrows next to the frozen fields.completely value when it comes to mouse clicks.

    I can use the tab key to jump everywhere and of input values. But it is a deal killer for productivity. This problem is also on the tool bar if I want to change the font, size etc.

    Any advice?

    Max

    One of the reasons could be: you set the text size to 150% or more in Windows 7 display controls. Set it to 125% (control Panel\All Control Panel Items\Display) and it will begin to work... Boring, I know... but this is how it works.

  • Manipulation of Drop Down Menu problem

    Hi, I have a dropdown Menu code AS2 as follow, this code is applied to a buttonOne onstage and next picture in the buttonOne is the menu that * not stop(); to any image in the movie button.

    onClipEvent (enterFrame) { / / If the mouse IS on the menu... }


    If (this.hitTest (_root._xmouse, _root._ymouse, true)) { / / If the menu is NOT completely open }

    If (this ._currentframe < this ._totalframes) {}


    nextFrame();        / / go to the next section of the menu opening sequence

    }


    { } else { / / If the mouse is NOT on the menu }


    If (this ._currentframe > 1) { / / If the menu is NOT completely closed }


    prevFrame();               / / reading of the previous image in the menu opening sequence

    }

    }

    *on the image next, I a buttonUp and a film Text1, buttonUp code such as follow-up:

    {run}

    onEnterFrame = function () {}

    Text1._y-= 4 ;}    If Text1 would be upward when you press.

    }

    {We (Rollout)}

    delete this.onEnterFrame;

    }


    NOW *, what I need is to make the buttonOne to function as a press the button instead of the button Rollover and pressed, next image will remain on stage, even when the mouse away (I will apply a button close the window afterwards).

    My problem is now, can I change the first part of the code:

    {We (Press)}

    gotoAndStop (2);  or something like that

    }

    While put stop();  on the two images in the movie, but doing this would remove the functionality on

    onEnterFrame = function () {}

    Text1._y-= 4 ;}

    If Text1 move not at all if there is a stop(); applied to the current image. I tried some methods but none doesn't work, tried to look on the web, but all of the tutorials I found are all drop-down menu type rolling.

    problem solved... instead of apply the we (press) on the film, simply create another button and call stop here to resolve the issue

    (...)

    Thank you for reading

  • How to get a selection of drop-down list to complete another field with nothing

    Hello

    I have a drop down menu that fills another field according to what is selected (as shown here where Admin mistakes fills the next field with 6735-10-01).

    Capture-1.JPG

    However, there are 3 items in the drop-down list that I don't want to fill in the other with (basically, it must be empty during one of these 3 elements are selected, in contrast to how it returns zero in the example below). I don't know what to put in for the values to make it white.

    Capture-2.JPG

    Please notify.

    Kind regards

    ZeroZone

    I don't know what your code looks like or where it is but you will need to add a conditional statement, such as:

    If (DropDown.rawValue == "0" | ") DropDown.rawValue == "1" / * | "" etc, etc, * /)

    TextField.rawValue = null;

    on the other

    TextField.rawValue = DropDown.rawValue;

    Kyle

  • Drop-Down Menu help

    I have Dreamweaver CS3, which I've tried to teach me... I am very new to this. I've created a navigation bar that contains seven buttons flash to navigate to pages. So far so good! But for one of the buttons, I need to be able to have a drop down menu appears when we click on this button - this is where my problem comes in. Being so new to this, I know that there must be a fairly easy way to handle this, but I'm not understand. I tried to use a Spry menu bar, but completely eliminating my button flash... that did not work. I thought maybe I could use a snippet of vertical navigation, but I can't understand how to integrate it with the button "flash". Can someone give me some advice on what to do or try?

    > So far, so good!

    Not so fast. If you want to use Flash for navigation, consider this-

    1. some people not having Flash installed - what are doing?
    2. engines cannot parse links Flash - your site will not be
    spidered
    3. the display of the devices and accessories functional don't parse links Flash - which users will be
    do?
    4 DW cannot maintain links within a Flash movie, so if you move or rename
    a file linked, will break your navigation - what will do you? You will have
    to redo those buttons.

    It is generally a bad idea for these reasons and these reasons,
    Adobe has removed the buttons Flash and Flash text of the next version of
    Dreamweaver.

    I recommend you to take this approach and see the menu systems
    offered by http://www.projectseven.com/. I am not affiliated with them
    otherwise only by being VERY satisfied user. PopMenuMagic appears on most of
    the sites that I build. Their products and support are legendary.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "Erie" wrote in message
    News:gedq9n$2D$1@forums. Macromedia.com...
    > I have Dreamweaver CS3, which I've tried to teach me... I am
    > extremely
    > new to the present. I've created a navigation bar that contains seven flash
    > buttons for navigating to pages. So far so good! But for one of the
    > buttons,.
    > I need to be able to have a drop down menu appears when this button is
    > clicked.
    > This is where my problem comes in. Being so new to this, I know it must
    > be a
    > pretty average easy to handle this, but I'm not understand. I tried
    > using a
    > Spry menu bar, but completely eliminating my flash button... which
    > has no
    > work. I thought maybe I could use a snippet of vertical navigation, but
    > I am
    > unable to understand how to integrate it with the button "flash". Peut
    > someone at - it
    > give me some advice on what to do or try?
    >

  • The Drop Down Menu number of Excel spreadsheets?

    Trying to open an Excel file created by my boss in number. There a few in drop-down menus, (pictured below) and they will not display correctly. Many prefer using numbers than Excel, anyone know of any tricks to make this menu drop-down appear in numbers as in Excel?

    In numbers, they simply appear not at all. Help, please! Thank you

    In Excel, you can automatically fill a drop-down list with values within a specific range of cells through 'Data Validation '.

    Numbers have no drop-down menu, but it doesn't have a Menu called data format.  It is easy to populate a drop-down list with values manually; Select the cells that contain different values which you want to make a choice and format on the Shortcut Menu. The result will be something very similar to your screenshot.

    But in doing so fully automatic as in Excel is not currently possible in number.

    Numbers provides an attractive work environment, but if you frequently need to exchange documents with your boss and your boss uses Excel, then better use Excel.

    SG

  • Dictation commands drop-down menu is empty.

    MacBook Pro (mid-2012), El Capitan 10.11.6

    In the preferences of accessibility, dictation, dictated orders, all orders are selected.

    Dictation & speech preference, dictated, dictated increased use is selected.

    Dictation is 'On '.

    When I click on the microphone at the top of the screen icon and select "Show dictation commands" menu drop-down is empty.  Yesterday, the drop down menu list all orders of the dictation.

    How to fix and what did wrong?

    Tom TX

    -Try to reset memory NVRAM/PRAM and SMC

    MacIntel: Reset of the controller (SMC) system management

    https://support.Apple.com/en-us/HT201295

    Subject of memory NVRAM and PRAM

    https://support.Apple.com/en-us/HT204063

    -Try to start safe mode

    OS x: what is Safe Boot, Safe Mode?

    https://support.Apple.com/en-us/HT201262

    -Start to recovery and repair the startup disk

    OS X: on OS X Recovery - Apple Support

    https://support.Apple.com/en-us/HT201314

    -If it is repairable reinstall the OSX

    How to reinstall OS X on your Mac - Apple Support

    https://support.Apple.com/en-us/HT204904

    -If you do not have a backup using disk utility to restore the internal drive to an external drive, so that you can try to recover the data.

    Format the boot disk and then do a fresh install of Mac OS x

  • Music drop down menu setting

    After installing windows 10, I have to use the drop-down menu music to choose my location of library or folder.  Previously on windows 7, the default music would show my albums., is this a change with windows! 0 I change it?

    You use the same version of iTunes, or have you updated that as well?

  • How can I open Web sites that I put in the drop-down menu when I click on the blue arrow to the menu drop-down

    I have windows XP. I use msn.com for my homepage. I entered the sites I want to go to every day. These sites are in the drop-down menu when I click on the blue arrow down. When I click on any one of these sites, they are not open. What can I do to fix this.

    Your user agent shows you are running Firefox in compatibility mode for Windows 98 (NT 4.10).

    • User Agent: Mozilla/5.0 (Windows NT 4.10; rv:37.0) Gecko/20100101 Firefox/37.0

    Make sure that you are not Firefox running in compatibility mode.
    You can open the properties of the desktop Firefox shortcut via the context menu and check under the tab "compatibility".
    Make sure that all items are disabled in the tab "Compatibility" in the Properties window.

  • My drop down menu changed search bar

    Everything I see that I get help on the search bar in the upper right corner shows the emblem of a little search engine. I don't have much, and I can't get it back. Worse still, when I start typing, I search point that I must now address a long list of terms of indefinable query from nowhere!

    I don't know how I changed all form the way it had been forever. I want to just my little drop down menu with a few indicators of search engine to this topic, and I just want to see my previous research, not what is trendy!

    Hi relem, I have already explained the reasoning behind the change: it is now much faster and easier to use different search engines that your browser by one on a wide base. If you want to do in the old search bar, you must first define a different engine in the search bar, search & then switch back (because the default value is also used in the address/home/new tab bar). It's a simple click!

  • 31.1.0 and 31.1.2 drop down menu commands and commands "right button" very slow... what to do?

    My TB version 31.1.0 and 31.1.2 drop-down menu commands and commands "right button" very slow... All other menu programs bars will work perfectly. Tried disabling McAfee, no diff. TB collects e-mails, wrote e-mails to a normal speed without problem. Control S, V, P, etc work but slow... what to do?

    To diagnose problems with Thunderbird, try one of the following:

    • Restart Thunderbird with disabled modules (Thunderbird Safe Mode). On the Help menu, click "restart with disabled modules. If Thunderbird works as usual, there is an add-on or theme interfere with normal operations. You will need to reactivate the modules one at a time until you locate the offender.
    • Restart the operating system in safe mode with network. This loads only the basics needed to start your computer while allowing Internet access. Click on your operating system for instructions on how to start in safe mode: Windows 8, Windows 7, Windows Vista, Windows XP, OSX
    If the safe mode for the operating system to resolve the problem, there are other software on your computer that is causing problems. The possibilities include but not limited to: AV scanning, virus/malware, background downloads such as updates of the program.
  • Do not show in the drop-down menu bookmarks

    I want my bookmarks to display in the drop-down list only in the sidebar that I don't want to use

    Is that the drop-down menu that shows if you click view your bookmarks' button next to the button star bookmarks in the Navigation toolbar?

    Note that when you to bookmark a page by clicking on the star, then the new bookmarks is created in the unsorted folder.
    The unsorted folder does not show in the drop-down list.
    You can click on the underlined blue stars another moment to change the bookmark and move it to another folder.

  • I can't seem to open additional tabs with the +, the drop down menu, or T command? Is this a bug or am I missing something?

    Hello
    I can't seem to open additional tabs with the +, the drop down menu, or T command? Is this a bug or am I missing something?

    I use Firefox 30.0 in OS 10.8.5 on a Mac Book Pro with the Intel Core i7 2.7 GHz and 1333 MHz DDR3 8 GB memory.

    Thanks in advance,
    Pat

    You have a "Community Toolbar" extension installed? Which has been reported by other users of Mac as affecting the new tab feature in Firefox 30.

Maybe you are looking for

  • Satellite A200 - crashes all the time

    I have a 3 years Satellite A200, great machine until about 3 months ago, when he started crashing randomly. The first time, I'm sure it froze just where it was, but after that the screen would just be black. It happened more often and a lot to restar

  • OfficeJet Pro 6830: There is a problem with the printhead

    There is a problem with the print head.  Or can not find the print head This problem just started happening. Everything was ok after replacing the cartridges of printers with HP cartrighes for this printer, printed since the replacement of cartridges

  • 0x800401f3 error

    I'm on vista on my laptop I get the 0x800401f3 error message could not initialize the internal COM library any help? I don't have a clue

  • How to restore a list of book distribution address

    I'm on XP.  I accidentally deleted a distribution list in the Outlook address book.  Can I restore it?

  • Cannot open my folders of Windows 8.

    I try to open my files icon and I can interact on the window does not appear, but I can hover over the icon and see the pop-up tab and clicking on it does nothing