Select from the drop-down list and populate a list in another menu drop down

I have a drop down list with 10 items in the list. If possible, would like for a selection in the drop-down list to populate a drop-down list with another list of selections. Each of the 10 points in the first list each will have a list of different options in the second drop-down list. I don't know how to build this solution.

Thank you

MDawn

Hello

It was because of the clear rawValue script that I put in the output from the drop-down list event businessFunction.

I fixed it:

// clear the current selection in the department dropdown
dept0.rawValue = null;
dept0.execEvent("exit");

https://Acrobat.com/#d=MrWYQbTZIR7xJQDlm5ZSLg

Good luck

Niall

Tags: Adobe LiveCycle

Similar Questions

  • Automatically populate a drop-down list by using another selection from the drop-down list box

    New java/preparation forms so I apologize in advance.

    I currently have a menu drop-down box 1 (Occupation) with three options: "enter your own description/blank", retired housewife. When someone chooses either retirement or anyone at home, I would another drop box 2 (employer) to assign automatically "n/a. . The employer drop box has only two options: "enter your own/blank", N/A.

    Far, I could for that box to fill but only when the person clicks in the box (as if they were about to enter their own text.) Then only it will fill the drop-down list "employer." I would like it auto fill once the person has chosen retired, Virgin or stay-at-home woman without having to enter in the box (just using the arrow to the size of the drop-down list box).

    I currently have a key shot that resets the employer box when a person chooses the option vacuum/enter your own option. I then a JavaScript (only for the housewife now) that only works if you click the box of. Key combination works I want to than the other options work as well. If the client settles on white, the choice of the employer updates automatically empty without having to click in the box of. Any help (including general advice to make my code cleaner) is very appreciated!

    Current script of typing:

    If {(event.willCommit)

    If (event.value == "") this.resetForm (["use"]); of other SetFieldValues (event.value);

    }

    The current upward, mice running JavaScript :

    var v = this.getField ("Occupation") .value

    If (v is "Housewife")

    1. this.getField("Employer").value = "N/a".

    I think maybe I should use event.willCommit in my formula, but I'm not sure how to include it.

    Thank you!

    I would not use the key sequence or MouseUp actions for this, but the action post.

    Just make sure that you set the field option to validate the selected value immediately (under Properties - Options) and then use this code as the custom validation script:

    var employerField = this.getField("Employer");
    if (event.value=="Homemaker" || event.value=="Retired")
        employerField.value = "N/A";
    else employerField.value = employerField.defaultValue;
    
  • Why, when I type in the address bar and select from the drop-down list, I seem to "click on" on one of the toolbar buttons?

    I noticed recently that, sometimes, when I chose an entry in the drop-down list after I started typing in the address bar, I would get a different page than I wanted to. It turned out that I was actually clicking the bookmarks toolbar button that has been hidden under the list entry, I thought I was clicking.

    Hi, thanks, but disabling hardware acceleration does not fix it. However, I just swapped my mouse, and seems not to happen anymore!

  • Select from the drop-down list point based on text box is not empty not

    Hello. I have a javascript code to click a button and it will insert the date in a text box named "Controller_PDF_Creation_Doc_Control_Date" in my form. I also have a drop-down list called 'Release_Approval_Initials '. Everything I'm doing is when there is a date of entry in the text box, I want that the 'Release_Approval_Initials' of the menu drop-down default by selecting the option "TM". The drop-down list is filled dynamically too. How can I do this? Here is the code I have.

    < SCRIPT LANGUAGE = "JavaScript" >

    verify() {} function

    var partNumber = ";

    var ecoNumber = ";

    var pdfDate;

    var queue;

    var queueValue = ";

    var allArray = document.getElementById('listofids').value.split (",");

    var error = false;

    for (var i = 0; i < allArray.length; i ++) {}

    pdfDate = document.getElementById('Controller_PDF_Creation_Doc_Control_Date'+allArray[i]).value;

    <!-document.getElementById ('Controller_PDF_Creation_Doc_Control_Date1') .value =' 19 / 08/11 '; ->

    queue = document.getElementById ('Release_Approval_Initials' + allArray [i]);

    queueValue = tail [queue.selectedIndex] .value;

    If ((pdfDate! = '' & & queueValue == '') |) (pdfDate == '' & & queueValue! = '')) {

    error = true;

    ecoNumber = document.getElementById('ECID'+allArray[i]).value;

    partNumber = document.getElementById('Part_Number'+allArray[i]).value;

    Alert ("You must enter a date of authorization to create PDF or Doc Control files and the queue to release for ECO" + ecoNumber + "part number:" + partNumber);

    }

    }

    {if (Error)}

    Returns false;

    }

    else {}

    Returns true;

    }

    }

    < /script >

    "< cfinput type ="Text"name =" "Controller_PDF_Creation_Doc_Control_Date #ItemID #" id = "Controller_PDF_Creation_Doc_Control_Date #ItemID #" value = "#DateFormat(Controller_PDF_Creation_Doc_Control_Date,"M/D/YY")" # "size ="12"maxlength ="8"validate ="date"required ="no"message ="you must enter a valid date in the format m/d/YY in the creation of PDF files or Doc control Date">"

    < cfinput type = "hidden" name = "today_date" id = "today_date" value = "#DateFormat (now ()," D/M/YY")" # "/ >"

    < input type = "button" value = "today's Date" onclick = "document.getElementById('Controller_PDF_Creation_Doc_Control_Date#ItemID#').valu e = document.getElementById ('today_date') .value" >

    < select name = "" Release_Approval_Initials #ItemID # "id =" Release_Approval_Initials #ItemID #">"

    < option value = "" > < / option >

    < cfloop query = "ShowDataEntryInitials" >

    < option value = "" #Initials # ""

    < cfif initial EQ ReleaseInitials > selected

    < / cfif > > #Initials # < / option >

    < / cfloop >

    < / select >

    Any help would be greatly appreciated. Thank you.

    Andy

    I figured out how to make it work. I just had to add parentheses in the right places to make it work. Here's what I did:

  • Impossible to delete previously selected items from the drop-down lists at the click of the button Reset on a page of the screen.

    Hello

    I'm unable to clear previously selected items from the drop-down lists at the click of the button Reset on a page of the screen. The code I did to clear the previous value when the click on the button Reset is as below.

    {} public void onReinitialize (ActionEvent actionEvent)

    System.out.println ("onReinitialize is called ::");

    UIComponent uiComp = actionEvent.getComponent ();

    If (uiComp is nothing)

    {

    otherwise we use the button that we linked to that bean

    uiComp = getButtonResetByBean ();

    _logger.info ("reset fields: buttonID =" + uiComp.getId ());

    }

    on the other

    {

    _logger.info ("reset fields: CompID =" + uiComp.getId ());

    }

    Pass the component inside the uniforms, UIXForm, UIXSubform, UIXRegion, UIXPopup, RichCarousel

    or RichPanelCollection that contains the components to reset

    getTextIDLOV () .setValue (null);

    ResetUtils.reset (uiComp);

    }

    ---

    Using this code Iam able to clear the entrance to the text box but can not clear previously selected items from the drop-down lists when the reset button is clicked

    Can anyone please help on this issue.

    It's simple, you can set GenerateIsNullClauseForBindVars = "false" in the viewCriteria who created in EmployeeView

    After doing that it will fill the list of employees only after the Department selection

    Again check the enclosed application

    Ashish

  • Subforms making visible depending on what is selected in the drop-down list

    Good day to all;

    Looks like I'm '0' batting today. For some reason I'm not able to get a number of things working today... Maybe I should just write off that day as a loss... ; >)

    Another way; I'm trying, unsuccessfully, to get forms to become visible depending on what is selected from a drop-down list. I tried to use "switch" (see below), but I end up getting the famous error "syntax".

    I also tried an 'if' statement (see below), but that doesn't seem to work either.

    What I would like to ask you is when a user selects 1 of 2 choices 1 2 forms sub becomes visible.

    So, if the user has selected in the drop-down list of the bad and they choose now to select the right pair, I want the form incorrect sub to again become invisible.

    I'd appreciate any help

    switch (this.rawValue)

    {

    case "2" :

    staffing_inter. Presence = 'visible'

    on the other

    staffing_inter. Presence = 'hidden';

    breaking ;

    }

    IF statement

    if (this.rawValue = 2)

    {

    staffing_inter. Presence = 'visible'

    }

    else {

    staffing_inter. Presence = 'hidden';

    }

    Number of things...

    What statements do not use "else". You must specify each value. But you can nest another code in a statement that.

    Using a drop down you need to get the new value when the selection is made.

    Thus (guess what you did 'Specify the item values' liaison for the DDL tab):

    var newValue = this.boundItem(xfa.event.newText);
    switch(newValue){
         case "1":
              //code
         break;
         case "2":
              //code
         break;
         //etc.
    }
    

    Or with your statement:

    var newValue = this.boundItem(xfa.event.newText);
    
    if(newValue = 2){
        staffing_inter.presence = "visible"
    }
    else{
         staffing_inter.presence = "hidden";
    }
    
  • Update from the drop-down list on the duration

    Hello, I'm fairly new to Java and Blackberry development.

    I am doing an application with a few editable text fields and drop-down lists. What I want to do is to change the options from the drop-down list (ObjectChoiceField), according to what is written on the text fields, all without pressing a button. Can someone give me a hand here? I thought to use invalidateAll to redraw the field, but I'm not sure.

    Thank you.

    OK, something else, this looks bad for me:

    your having

    unitChoiceField.setChangeListener (editListener);

    But editListener is not defined until after that, so with that statement, you're

    the listener of null changes.

    Put this line after you set your headset to changes.

    Also we say something "does not work", is not very useful.  If please do some debugging and tell us what he does not she should do this, rather than saying that it does not work.  Imagine that you took your car be fixed and told them that it did not work.  Would they be able to fix it?

  • XLATLONGNAME from the drop-down list should be a default value in the edit box

    Hello


    I have two fields in a grid, one named "TEST_Type" and one is named 'TEST_Name' edit box
    Use cases, TEST_Name by default will be TEST_Type in Drop Down.

    "TEST_Type" is the translation of edition Table and 'TEST_Name' will contain XLATLONGNAME.

    I do drag XLATLONGNAME of PSXLATITEM table in my grid and make related field and "TEST_Type" a related control field.

    Show LongName according to the value "TEST_Type.

    If the field 'TEST_Name' RowInit, I wrote

    If GetRow(). IsNew and
    No (MYRecord.TEST_NAME. Value) then
    MYRecord.TEST_NAME. Value = GetRow(). GetRecord (Record.PSXLATITEM). GetField (Field.XLATLONGNAME). Value;
    End - If;


    It gives an error

    "Class line method GetRecord account PSXLATITEM is not valid. (2 268)

    MYRecord.TEST_NAME. RowInit

    The recording has been used as a parameter of the specified method. It is not valid for the current object. »

    What is the problem?

    Is there a better solution for this use case?


    Thanks in advance

    I think you mix a few think upwards.

    The drop is on a class with the values of translate. So, when you set the property to the field from the drop-down list page to view the longxlatitem, you are finished.

    If you want to copy the xlatlongvalue for some reason any other areas, use instead the domain object properties.

    & dropdownlownlist = getrecord([YOUR_RECORD]).getfield ([YOUR_FIELD]);
    VALUE = & dropdownlownlist. LongTranslateValue;

    Kind regards

    Halin

  • selection in the drop-down list makes the visible field

    I have two drop down fields, select from the first drop down field provides a list of the items contained in the second drop-down list. When an item in the second drop-down list is selected, I want a hidden field to become visible.

    I don't know how to write the script on the second menu drop-down to make the visible area. Here is the script that I have, which does not work:

    If (this.rawValue == 'ACD');

    {

    agentID.presence = 'visible';

    }

    If (this.rawValue is 'Agent');

    {

    agentID.presence = 'hidden';

    }

    Thank you

    M.Dawn

    HI Margaret,.

    Here is the corrected form https://acrobat.com/#d=D3yZytcriTw0pMp4S232Wg.

    You had semi colon after the if statement (which was throw). Also, I've shortened the reference to the agentID object:

    if (this.rawValue == "ACD") {
        agentID.presence = "visible";
    }
    else if (this.rawValue == "Agents") {
        agentID.presence = "hidden";
    }
    

    Good luck

    Niall

  • selections in the drop-down list in the list box

    Hello everyone, I have a ddlist which is filled from xml data. Select I would like selection appear in the list box. I am not able to understand this, can somone provide me with some guidance.

    This simliest is the script of the event: change from the drop-down list:

    ListBox1.addItem (xfa.event.newText);

  • Create a list (of participants) from the drop-down list

    Hello

    I would like to create a list of participants of the selection in the drop-down list.

    After selecting one choice in the list drop-down I LCD to complete the list of people who belong to this choice and to choose those that is present at that meeting (using the check box).

    How can I do that, please?

    Thanks for all tips.

    Best,

    Marian

    Hi Marian,

    It is possible, but requires a fair bit of screenwriting. Also the page will probably need to be poured so that the table grows, objects under move down as well.

    Here is an example: https://acrobat.com/#d=X1msu65emlM10IWKxkiUyw

    Hope that helps,

    Niall

  • Get the value currently selected in the drop-down list

    Hello Zac,

    I have a question to get the current value in a drop in export UI. Currently I have a custom fall that I fill with UTF16 strings down. I set up as follows:

    Field order
    (1) exNewParamInfo ParamName;
    (2) exParamValues ParamValues;
    (3) ParamName.structVersion = 1;
    (4) safeStrCpy(ParamName.identifier, 256, ADBEVideoFieldType);     FieldType is considered an example of existing code
    (5) ParamName.paramType = exParamType_int;
    (6) ParamName.flags = exParamFlag_none;
    (7) ParamValues.structVersion = 1;
    (8) ParamValues.disabled = kPrFalse;
    (9) ParamValues.hidden = kPrFalse;
    (10) fieldOrderParam.paramValues = ParamValues;

    exportParamSuite-> AddParam (exporterPluginID,
    mgroupIndex,
    ADBEBasicVideoGroup,
    and ParamName);

    I can then load my dynamically generated strings in the fall down (in ProstProcessParams) and they are displayed correctly.

    Then, I call upon export

    exportParamSuite-> GetParamValue (exID, 0, ADBEBasicVideoGroup, & ParamValueToBeReturned);

    to get the current value.

    However, I'm not UTF16 string. My guess is that's because the value of this field is UTF16 and not int (that I put in place on the line 5). I tried to use exParamType_string, but it gives me an editable text field.

    Then, how we configure a drop custom down correctly to obtain the current values of the string of her?

    Thank you

    Petro


    Hey Petro,

    During exSelPostProcessParams, in your calls to the AddConstrainedValuePair(), you have defined a type of integer values to strings mapping.  You can use the same mapping to determine which channel has been selected in the drop-down menu of the integer value passed from GetParamValue().  Integer values can actually be more accurate, because due to the location, the strings may vary.

    Looking at the code, you can make limited value of pairs with parameters of type exParamType_string.

    Kind regards

    Zac

  • Items from the drop-down list

    Is there a a way to get objects from the drop-down list to open the user clicking on the object itself (without using the button)?

    Look at this example of Niall:

    http://www.assuredynamics.com/index.php/portfolio/custom-dropdown-lists/

  • My Panel of libraries is missing from the drop down window. Where can else I access it? Is this normal?

    My Panel of libraries is missing from the drop down window. Where can else I access it? Is this normal?

    Lisa,

    Please check if the AI CC 2014 update is applied or not. Check the desktop creative cloud for all application pending update.

    Thank you and best regards,

    Mohit Gupta

  • I use a PC and I used LR3. I'm a newcomer to LR, so patient with me! My problem is related to the import function. I have a photo library on an external hard drive. I slowly imported previews of the photos selected from the library in

    I use a PC and I used LR3. I'm a newcomer to LR, so patient with me! My problem is related to the import function.

    I have a photo library on an external hard drive. I've slowly been import previews of the photos selected from the library in my catalog, adding them during the import process - well. But now, I hit a problem. Another folder in my library contains several subfolders, each containing a number of photos (a mixture of RAW steals (naves) and jpg). I was importing found in my catalog each Subfile in turn, using the Add function, usually of the jpgs only from each Subfile. It works fine, until I reached a particular Subfile. For some reason when I try to import from it and select the secondary file as a Source, only the RAW (NEF) images appear in the preview pane (sorry, forgot the correct term for it!). I know that jpg files are in this auxiliary file on the external hard drive, because when I view its content in Windows, they are all there. But try as I can (choose the file under source, select the folder parent as a source, try to copy or move them, instead of adding them), nothing seems to work. Since they do not appear in the preview pane, I can't import them. It does appear that this a Subfile where the problem exists, but I don't see anything that is different from the others (names of files under all use the same structure - yyyy-mm-dd_custom name, and pictures in all subfolders are adopting the same denomination structure too - yyyy-mm-dd_sequential number_custom name.) NAVE/JPG. So what I am doing wrong? Any ideas please.

    It is possible that the images in this particular subfolder were taken in your camera in RAW + JPEG.  If so, you will need to go to preferences under the general tab and make sure the box "processing JPEG files files next to raw as separate photos" is checked.

    However, assuming that this is the case, there is really no reason to import the JPEG file if you already have the RAW file.

Maybe you are looking for

  • MacBook pro stops during boot, same drive boots imac

    My 2009 MB Pro has a 2 TB with (MacOS 10.11) inside drive. It suddenly started to stop a few seconds in the boot process. When I walk in target disk mode I can still boot my iMac using this same internal drive via firewire. I used it like that for a

  • DAQ read loop with finite samples

    Hello I would like to acquire the data of the instrument with a 6024E Board then put the peaks and which repeat at the highest frequency possible. The task of data acquisition is configured for sampling finished using a trigger, generated by the inst

  • I need the service packs for Windows XP

    I had to reinstall a program XP in 2001.  Cannot download service pack 1.  Get a server error.  Any suggestions on how to get the SP1 and 2?

  • How to erase a DVD of rewriting?

    I have been more money and all around this problem without success.  Help How to erase a cd/dvd?

  • CD/DVD/Blu Ray, failing to detect/read blu ray discs

    Hello community of Sony This is my first post, so please be patient with me I have a Sony vaio laptop, the model name is VPCEG16FM I've already restored to factory settings some days and everything is up-to-date and running smoothly. Except that... t