AutoFill dropdown in another drop-down - menu allow you to change

Hello experts!

I just started usind

Adobe Pro 10.

I have 2 drop down menus both with all menu options drop down same (choice).  About 80% of the time the drop-down list

dropdown2 value will be identical to that of dropdown1, so I want to pre-fill dropdown2 with the value of dropdown1 but also allow the user to choose a different value for dropdown2 if they need to.

I know that I can popluate dropdown2 the value of dropdown1 with the custom calculation script following;

Event.Value = this.getField("dropdown1").value

This fills the field very well, but the user cannot choose one different value other than in dropdown1 if necessary.

In my efforts to understand this out is to see that a SWITCH command can be useful, but I don't know how to use the command correctly, or if it is the best way to go.

Any help is GREATLY appreciated!

I was afraid that you would say that, because it complicates things a bit. You must have a way to indicate that the user makes a selection in the second drop-down list box. You can use a global document variable for this. To set up, add a new javaScript to the document level (Advanced > Document Processing > Document JavaScripts) that says the following:

Option indicating whether the user has changed the value of combo box 2

var cb2_changed = false;

Make sure this code is outside of a function definition. You can call the JavaScript to the document level you want (for example, "init") and remove the skeleton of function, it provides by default.

Next, add the custom script after typing for the first drop-down list box:

Custom script from typo to 1 combo box
If (! event.willCommit) {}

Get the value of the selected user
var val = event.changeEx;

Get a reference to the other combo box
var F2 = getField ("cb2");

Only the value of combo box 2
If it has not been changed by the user
If (! cb2_changed) {}
F2. Value = val;
}
}

Replace "cb2" with the actual name of the second drop-down list box.

Finally, add the following as the custom script typo to the second drop-down list:

Custom script from typo to the combo box 2
If (! event.willCommit) {}

Get the value of the selected user
var val = event.changeEx;

Get the current value of this field
var prev_val = event.target.value;

Set the indicator shows that the user has selected a new value
If (val! = prev_val) {}
cb2_changed = true;
}
}

This code assumes that combo box items have the value of exports and that they are identical to the combo box 1 and 2. In addition, select the 'Value selected to validate immediately' option for the two combo boxes. You can create a general function of at the level of the document based on this code, so it can be reused by any number of pairs of box drop-down list that you want to behave this way. Post again if you get stuck.

Tags: Acrobat

Similar Questions

  • I would like to add a drop down menu allows me to select a time.

    I am new to Adobe Acrobat Pro DC so forgive my ignorance. I use this program in Windows. I would just add a dropdown menu to my form to fill out so that I can choose a time in military format. I know it must have a simple solution then I thank you in advance for any help you can give.

    What exactly is the problem? Create a drop-down list field and add all items

    you want to have... If you want to than every minute to be selected I

    recommend you use two fields, one for the hour and the other for minutes.

  • How to prevent the drop-down menu when you click in the URL field?

    Hello

    For some time there is Safari displays a short title in the URL field when you view a web page (for example, at the moment it says "Apple Inc").  Quite often I want to drage the actual URL in a note or on the desktop for later use.  Whenever I click in the URL field to do this, Safari down a bunch of icons corresponding to the bookmarks in the bookmarks bar, which is useless as my favorite bar is always visible.

    What I would do is to disable this action so that when I click on all I get is the URL so I can drag it somewhere.  Quite often when I drag the URL and domain of Favorites icons is visible, Safari think I want to lodge in this area and therefore mixes the existing icons around according to what path taking when you drag.  It's really very annoying behavior and there must be a way to disable.

    Thank you!

    -Tod

    Safari > Preferences > search

    Uncheck the "Show Favorites".

  • Cannot select text in the drop-down menu after you have installed Indesign CC2015.

    I cleared the cache of police, I have re-installed the whole program and I checked the other apps for similar problems, there are none. Not really sure where to go from here.

    As a work around, I am able to scroll through the list and make your choice with the keys on my keyboard. Not really ideal if!

    Any suggestions?

    No, if it works in another account we need not the test Mode without failure.

    Make sure InDesign is closed, then:

    See replace your preferences for the paths to the TWO hidden folders where the prefs are located and rename or delete them in the original user account. A copy of these two entire folders, not only the content from the account that works and stick to the appropriate locations in the account which is not.

  • Drop-down menu entry custom

    Hello

    I have a drop down list in my form that has uppercase values, I made in the drop-down menu "allow custom text input."

    The problem is when the user makes an entry custom in small letters, no suggestion appears in the drop-down list, as all values are in capital LETTERS.

    I want suggestions for some, even if the user enters in lowercase letters. How is it possible?

    Pls help.

    Thank you

    Ludovic

    I can't check the syntax that later, but the following text in the change event should work:

    XFA. Event.change = xfa.event.newText.toUpperCase ();

    Niall

  • Menu Menu-> Make another Drop Down Menus Visible

    I am having trouble with a simple if-else statement. When a certain selection is made in a drop-down list, I want two other menus to appear. (When running, they are hidden). The current problem is that when I try and select anything in the drop down menu, it will only allow me to select the an option. (If I try to choose something else, it amounts to the same thing every time.) If I put the 'if' statement to trigger to something else, then this option is that it displays and so forth. I did a lot of these types of scripts in other areas of this PDF file, but I can't understand why he is not doing what I want now.

    The 'change' event is what I currently have this value. I also put it the event 'enter' without change.

    If (this.rawValue = "ankle / Brachial Index (ABI) - 93922")
    {
    ABI.presence = "visible".
    TBI.presence = "visible".
    }
    on the other
    {
    ABI.presence = "hidden".
    TBI.presence = "hidden".
    }

    If there is a better way to do than the method that I am trying to use, please do not hesitate to suggest. I am certainly open to new learning methods.

    You need two equal signs in the if statement to make a comparison. A single equal sign will assign a value but equal two to will be a comparison.

    Paul

  • Drop-down menu is not expanding

    Hello

    I created a drop down menu in a qml Page (inside a container), but it is not workin: when I tap on it, it does not extend. The code is below

    Container {
    minHeight: 720
    layout: StackLayout {
    }
    onCreationCompleted: {
    scrollView.requestFocus();
    }
    
    DropDown {
    title: "Push button on the"
    enabled: true Option {
    id: centerOption
    text: "Center"
    value: 1
    }
    Option {
    id: rightOption
    text: "Right"
    value: 2
    }
    }
    
    }
    

    I found the solution. I'm accidentally requestFocus() baseobject another and so the menu drop-down is unlikely to expand.

  • 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

  • Select Drop Down Menu recordset query.

    I'm looking to use a dynamic drop-down menu to query a Recordset... I use Colfusion to import a MS Access database that contains the following fields: 'Date template', 'Name', 'Points' and 'target '.  Whenever updates to the database, the field 'model' contains the date and time, the model has been run.  I figured out how to create a drop-down Dynamics using SELECT DISTINCT 'model date' and have also figured out how to create the dynamic recordset to display display the data 'Name', 'Points' and 'target '.

    I want the user to select the "Date of model" in the drop-down menu, press "submit" button and then have the appropriate 'Name', 'Points' and 'Target' data surveyed and below.

    The application must take the selection in the drop-down list of 'model date' and then query the fields 'name', 'points' and 'target' for this particular "date model.

    I admit that my knowledge of SQL and Coldfusion is not the best, but it seems that it is a fairly simple task and miss me just one or two pieces of gear and put everything.

    The database essentially looks like this:

    Date pattern... Name... Points of... Goal

    01/08/2010-08:00... DOE... 1, 250... 5.55%

    01/08/2010-08:00... DOE... 850... 2.35%

    01/08/2010-08:00... Bill Smith... 11, 832... -123,23%

    2010-08-02 09:02... DOE... 1, 323... 6.67%

    2010-08-02 09:02... DOE... 1: 001... 3.21%

    2010-08-02 09:02... Bill Smith... 10, 235... -110.26%


    The drop-down list shows only "model dates."

    01/08/2010-08:00

    02/08/2010 09:02

    For example, if on 01/08/2010 08:00 has been selected in the drop-down list, I want the following text is displayed:

    Name.................. Points of... Goal

    John Doe... 1, 250... 5.55%

    Jane Doe... 850.......................2.35%

    Bill Smith... 11, 832... -123,23%

    For any help or suggestion would be greatly appreciated!

    Thank you

    Mike

    My second paragraph speaks only to display the filtered data, so I guess that's what you're looking for, but not yet quite sure based on what are the other answers.

    But I'm on anyway-

    On your first page, note the instance name of your drop down menu, for example "ModelDate".  Make sure that it is in a form and set the form action on the page where you want to display your data, set the form POST action.

    On the results page, create a table with cells for each of the data items to display. Create a recordset that you can do in Simple mode. Allow to select all and the value of the fall of filter down to the database field that contains the Date of your model. In the box on the right, select "=". the next list dropdown selct "Variable form" and the name of the variable type in the name of the instance of falling down on the first page.

    I may not have the terminology right it's memory.

    On the data tab, expand your recordset and locate each of the database fields to display.  Drag each of them to the cell in the table on the page where you want it to display.  The cells in a table should be in a linear row.

    Now select the table row buy by selecting the TR tag in the tags just above the properties panel.  In the server behaviors tab, select the region of repetition and "All Records"

    Publish your pages and test!

  • Label of the locale selection Drop Down Menu

    Hello everyone, I am trying to familiarize themselves with the location with flex, I created my own files in use, files (.properties) and a simple application that works.  It uses a dropdownlist control to allow the user to choose what language to see.

    Here is my code

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" viewSourceURL = "srcview/index.html" >
    < fx:Declarations >
    < fx:Date id = "currentDate" / >
    < mx:DateFormatter id = "df" / >
    < s:ArrayList id = "local" >
    en_US < fx:String > < / fx:String >
    < fx:String > en_US < / fx:String >
    < / s:ArrayList >
    < / fx:Declarations >
    < fx:Style >
    @namespace s "library://ns.adobe.com/flex/spark";
    s | Label {make-size: 18 ;}}
    < / fx:Style >
    < fx:Metadata >
    [ResourceBundle ("customStrings")]
    < / fx:Metadata >
    < fx:Script >
    <! [CDATA]
    Import spark.events.IndexChangeEvent;

    protected function dropdownlist1_changeHandler(event:IndexChangeEvent):void
    {
    resourceManager.localeChain = [(event.newIndex) locales.getItemAt];
    dateLabel.executeBindings ();
    }
    []] >
    < / fx:Script >
    < s:layout >
    < s:VerticalLayout horizontalAlign = "center" paddingTop = "20" / >
    < / s:layout >
    < s:DropDownList dataProvider = "{local}.
    change = "dropdownlist1_changeHandler (Event)" "
    selectedIndex = "0" / >
    < s:Label id = "dateLabel".
    Text = "{resourceManager.GetString ('customStrings', 'todayItIs')} {df.format (currentDate)}" / >
    < s:Label text = "{resourceManager.getString ('customStrings', 'helloWorld')}" / >
    < s:BitmapImage source = "{resourceManager.getClass ('customStrings', 'helloFlag')}" / >
    < / s:Application >

    The files used at present are "en_US" and "en_US".  The drop down menu filled with a table

    < s:ArrayList id = "local" >
    en_US < fx:String > < / fx:String >
    < fx:String > en_US < / fx:String >
    < / s:ArrayList >

    But in my drop-down list, it lists en_US and fr_FR, how do I change it to English and the French?  While retaining the ability to share files, the lang

    Thank you!

    You need to create something like that

    ARR:ArrayCollection = [{id: 'en_US', Label: 'English'}, {id: 'en_US', Label: 'French'}]

    so, you can use internally as locale en_US but dropdown will show English...

    I hope you got my point...

    If this post answers your question or assistance, please mark it as such.

  • 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.

  • The back button often responds with a drop down menu of the story rather than simply go back to the previous page. There used to be a small arrow for that, why did you do that?

    The back button often responds with a drop down menu of the story rather than simply go back to the previous page. There used to be a small arrow for that, why did you do that?

    When I left click on the back instead of the browser navigation back button, I go almost every time to get the list of previous browsing history or it will just doing nothing until I click on the new button. The history of combination of button "return" rather than a separate between the historical click of the buttons box is the problem. Combined with my arthritic fingers of aging that is. If I was as fast as I used to be I guess it wouldn't be a problem. I liked the separate history area. This action combination navigation / buttons story scenario is problematic. I'm fairly certain that if I find it quite disturbing to bring to your attention that there are others (old beards) in the same boat I am.

    Thanks for listening
    D

    Use one of the following methods to open the tab history list:

    • Right-click on the back or next button
    • Press and hold the left button of the mouse on the active back or forward button until the list opens

    You can watch this extension:

  • Drop-down menu is hidden behind the elements

    Hello

    I have a right to 2 containers after another. Drop-down menu is in the first. When I want something to choose in the drop-down menu, he hides behind the elements in the second container.  How can I make this drop in the front, when the seecting elements?

    In my application, I also noticed that when I didn't use a drop-down list ScrollView did disappear after the elements below the drop-down list. Then when I used a ScrollView around all elements, it has been resolved.

    A drop-down list in cascades infact do not come on the top items. It expanded just himself and all the elements under the menu drop-down get pushed down. When the bottom is reached, items below, that the drop cannot be pushed more, so the drop-down list will appear behind items.

    When you use a scrollview, the items in the drop-down list may get pushed too far below is necessary because the window is not limited to the screen.

    I hope that was a little bit useful.

  • Drop-down menu SENDTO does not contain the same list as in the SENDTO folder in the User\Appdata\microsoft\windows\sendto folder.

    Prior to Win7 and Vista (seems to have the same problem), make a right click on a file would produce a drop down menu containing SENDTO containing various options like send this Word file, or write or Adobe or desktop (make a shortcut).  Other options of destination could be added by finding and opening the SENDTO folder and dragging shortcuts in there.  These added destinations would appear then in the menu drop down click the right button.  The feature doesn't seem to work in Win7.  The SENDTO drop contains the locations that are not in the SENDTO folder.  I've renamed the SENDTO folder to see what would happen.  Always in the same places appear in the menu dropdown.  It seems that Win7 has a situation he's going to other than the SENDTO folder.  Interestingly, I can add some program shortcuts in the SENDTO folder and they will appear in the drop-down list, others do not like the trash.  There are items in the drop-down menu are not in the SENDTO folder.  Help Help

    Click on the round of Windows (start), type shell: sendto and hit enter, add or remove shortcuts. Is it now behave properly?

    I forgot to post the location of SendTo folder, it's C:\Users\UserName\AppData\Roaming\Microsoft\Windows\SendTo

Maybe you are looking for