I have one drop-down list box where one selection (options) is the other.

I have one drop-down list box where one selection (options) is the other. If a user selects the other, I want to conceive the possibility for them to enter some Notes to describe their other. A pop-up window or the text box is possible? Do not know how to approach the issue... Thank you!

The field in parentheses is the text (or drop-down menu or other) you want to display when "Other" is selected and hide when it is not.

If you want to apply the same logic to several fields just duplicate this line of code, the field name in each copy of setting.

Tags: Acrobat

Similar Questions

  • Have the drop-down list boxes become visible depending on the selection in a previous drop-down list box?

    Hi, im doing a form that only shows some options based on the previous selections.

    So far I have buttons which allow a user to select a specific product, and then by using the drop-down combo boxes select some optional features.

    I then have a simple javascript code that bears the name of a product at a price (i.e. the user selects product 'A', the review sections shows priced at $ 99).

    My problem is with additional customization options that depend on previous choices.

    Is it possible to have some drop-down list boxes become visible depending on the selection in a previous drop-down list box? If yes how could I impliment it?

    Currently my best idea is to have a button that could ask the user if he or she had previously chosen a certain selection and then reveal areas of correct drop-down list accordingly.

    Thank you

    Hello

    With a small change I think that the code works as expected. I changed your mainDD.value to event.value, as on the validate event the mainDD.value property cannot be updated as expected.

    script

    this.getField("Dropdown2").display = display.hidden;

    this.getField("Dropdown3").display = display.hidden;

    this.getField("Dropdown4").display = display.hidden;

    Switch (event.value)

    {

    case "a":

    this.getField("Dropdown2").display = display.visible;

    break;

    case "b":

    this.getField("Dropdown3").display = display.visible;

    break;

    case 'c ':

    this.getField("Dropdown4").display = display.visible;

    break;

    by default:

    break;

    }

    end of script

    Hope this helps

    Malcolm

  • How to populate a drop-down list box itemEditor

    Hi all

    I have a DataGrid where one of the columns is a drop-down list box. I use a component itemEditor for the drop-down list box. I guess that's the best practice? I have an arrayCollection collection in my application I want to use in the itemEditor, but I'm not sure how to pass data to the component. Here is my code. Any help you could provide on how to do this would be greatly appreciated.

    Answered my own questions.

    Just need to add the result to my model object and then use it as my dataprovider.

    DOH!

  • How to clear a drop-down list box

    OK, been awhile, here goes:

    I have a combobox non-Edition and 3 radio buttons.

    When I select a radio button, I have reset the items in the list and run:
        category.getSelectionModel().clearSelection();
         category.setValue(null);
    The intent is a new list, nothing pre-selected and invited him to display in the text box (?). And it seems to work at first.

    However, when I select the original square, the first list is restored, and the drop-down list box shows my original selection!

    I would like that the prompt as in other radio buttons. I can not even find where the initially select value is stored! It SEEMS that the selection is cleared, as the value, it's the control renderer displays always a selection, even if the previous list, he showed the guest
         templateToggle.selectedToggleProperty().addListener(new ChangeListener<Toggle>() {
                @Override
                public void changed(ObservableValue<? extends Toggle> ov,
                        Toggle old_toggle, Toggle new_toggle) {
    
                    if (templateToggle.getSelectedToggle() != null) {
                        final String tmplType = ((RadioButton) templateToggle.getSelectedToggle()).getText();
                        Preferences.userNodeForPackage(Evidentia.class).put(Const.O_TMPL_TYPE,
                                tmplType);
    
                        Platform.runLater(new Runnable() {
                            @Override
                            public void run() {
                                category.getSelectionModel().clearSelection();
                                category.setValue(null);
                                category.getEditor().setText("");  << was getting desparate
                                ListManager.getInstance().setTemplateCategoryList(TemplateDao.getInstance().findCategories(tmplType));   << template list is the list behind the combo
                            }
                        });
    
                    }
                }
            });
    Thoughts?

    Published by: edward17 on 8 April 2013 11:20

    Published by: edward17 on 8 April 2013 17:11

    Published by: edward17 on 8 April 2013 17:12

    This looks like a bug: you must file a JIRA for her.

    As you said, the State seems to be correctly updated: getSelectionModel () .getSelectedIndex () and getSelectionModel.getSelectedItem () return the correct value.

    The only solution I can find is to define an explicit Circus on the drop-down list box and call setText (null) on the circus to clear the displayed selection:

    import java.util.HashMap;
    import java.util.Map;
    
    import javafx.application.Application;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.scene.Scene;
    import javafx.scene.control.ComboBox;
    import javafx.scene.control.ListCell;
    import javafx.scene.control.RadioButton;
    import javafx.scene.control.Toggle;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    
    public class SwitchableCombo extends Application {
    
      @Override
      public void start(Stage primaryStage) {
        final Map> comboData = new HashMap<>();
        comboData.put("Beer", FXCollections.observableArrayList("IPA", "Stout", "Porter", "Dubbel"));
        comboData.put("Wine", FXCollections.observableArrayList("Cabernet Sauvingnon", "Zinfandel", "Merlot", "Malbec", "Pinoit Noir"));
    
        final ComboBox combo = new ComboBox<>();
        final ListCell buttonCell = new ListCell() {
          @Override
          public void updateItem(String item, boolean empty) {
            super.updateItem(item, empty);
            setText(item);
          }
        };
        combo.setButtonCell(buttonCell);
        final HBox buttons = new HBox(5);
        final ToggleGroup toggleGroup = new ToggleGroup();
        for (String type : comboData.keySet()) {
          final RadioButton button = new RadioButton(type);
          buttons.getChildren().add(button);
          toggleGroup.getToggles().add(button);
        }
        toggleGroup.selectedToggleProperty().addListener(
            new ChangeListener() {
              @Override
              public void changed(ObservableValue obs,
                  Toggle oldToggle, Toggle newToggle) {
                final ObservableList items = comboData.get(((RadioButton) newToggle).getText());
                combo.setItems(items);
                combo.getSelectionModel().clearSelection();
                buttonCell.setText(null);
              }
            });
    
        combo.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener() {
              @Override
              public void changed(ObservableValue obs,
                  Number oldValue, Number newValue) {
                System.out.println(newValue);
              }
            });
    
        combo.getSelectionModel().selectedItemProperty().addListener(new ChangeListener() {
              @Override
              public void changed(ObservableValue obs,
                  String oldValue, String newValue) {
                System.out.println(newValue);
              }
            });
    
        VBox root = new VBox(15);
        root.getChildren().addAll(buttons, combo);
        primaryStage.setScene(new Scene(root, 200, 400));
        primaryStage.show();
      }
    
      public static void main(String[] args) {
        launch(args);
      }
    }
    
  • A. SWF call through a drop-down list box.

    Hello
    I do drag a drop-down list box and provide 3 options of January, February and March. I want to see 3 different. SWF files in the page even when I choose one of these options. Please help me to call movies through combo box selection. Here is my code.

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >
    "< mx:ComboBox xmlns:mx = ' http://www.adobe.com/2006/mxml" > "
    < mx:dataProvider >
    < mx:ArrayCollection >
    < mx:String > January < / mx:String >
    < mx:String > February < / mx:String >
    < mx:String > March < / mx:String >
    < / mx:ArrayCollection >
    < / mx:dataProvider >
    < / mx:ComboBox >
    < / mx:Application >

    Thank you

    I store the file name of the SWF in your combo box dataProvider and then when it changes the load the new swf based on what they have chosen. I wrote an example application that does this.


    http://www.Adobe.com/2006/mxml"layout ="absolute">


    Import mx.collections.ArrayCollection;

    [Bindable] private var swfDP:ArrayCollection = new ArrayCollection([)
    {label: 'Pick a month' ", data:" "},
    {label: "January", data: "january.swf"},
    {label: "February", data: "february.swf"},
    ([{label: "March", data: "march.swf"}]);

    private void onComboChange(event:Event):void {}
    => Checks if swf location, if it then loads the new swf.
    (event.currentTarget.selectedItem.data! = "")? Loader.Load (Event.currentTarget.SelectedItem.Data);
    }
    ]]>

    You will need to change the name of your file, except if they really are named january.swf and what not. I hope this helps.

  • How to change the items in a drop-down list box that is part of an array of clusters

    Hello

    In the attached vi, I have an array of clusters and each cluster contains two drop-down list boxes. How can I edit the items in the drop-down list box 1 for all elements in the array? (All elements of list box 1 has the same elements.)

    By way of illustration, I have also included the case of trivila, for example, edit the items in a separate drop-down list box that is is not part of an array of clusters (combo box 3). Please notify. Thank you.

    Peter

    Right click on the drop-down list box and select Create-> Node-> String() property. Place it on the block diagram. Change to write (right click) and then feed him an array of strings.

  • Select the string table drop-down list box.

    Hi all

    I want to select the combo box list based on a string in the entry, I don't know how to do this. I have a drop-down list box and the value comes from a database, what I want to do is I want to change the value of the selected box based on the existing value in the database drop-down list. for example, A, B, C D I strings in the drop-down list box, and then in my database, I have a field with the string C, I want to change the C to A. I can't enter the value of C in a string format, but I don't know how to be the first position of the drop-down list box in so the order of channels combo box will be C, A, B, d., the value of C

    Thank you

    Then just write a new array of strings, with the elements of the new agenda, to the "[] strings" - property.

    Either you must code something that allows you to create an array of strings with the elements in the order that you want them to be. If there is a reorganization only, you could do something like:

    -Get the array of strings [] from the drop-down list using a property node box.

    -Find the position of the element you want to place first and use "delete from table", which returns the new array and the element removed.

    -Build a new table 1 d of the deleted item and table remaining. Move to the second combobox Strings [] property of a node property.

  • drop-down list box choose several

    Hello

    I try to make a drop-down list box, where it should be possible to choose multiple values at the same time. The list contains a lot of historical evidence, and I want to make a graph showing only the elect. Is it is it possible to define a bool for every item, which is false by default and can be changed to true, then the plot is illustrated in the chart?

    Thank you

    manuelwaser

    Here are the saved vi LV 8.5

  • Editor of point drop-down list box

    I have a datagrid that has a datagrid column that has an article editor who is a drop-down list box.

    When you normally select a combo box, the text box is net and whatever text is in the text box is selected.

    However, under the conditions that I am currently using the drop-down list box, when you select the column, the text drop-down list box is visible, but you must click on it once again to get the active text box and or whatever the text is selected.  Why is this and is there a property or an event, can I change it so that I don't have to click twice to get the active drop-down list?

    In fact, it turns out that I have has no need to do it either.  I added a full function of creation and in the service, I put emphasis on the combo box and that fixed it.  I found this fix searching on IFocusManagerCompoonent.  The person gave an example and then said that if all you really wanted to made the object, then why not add it to the component of the complete creation of function.  I tried it and it worked.

  • cannot detect if it is has only 1 item in the drop-down list box?

    I have an array of strings to put them in the drop-down list box, a drop-down list box. I will select an item in the drop-down list box drop-down list and press the button 'delete '. It removes the item from the drop-down list box. but when I come to the last drop-down list box, im unable to remove offshore because it does not get pass this line...

    myEntries.selectedItem.label is myArray [i]

    Why do myEntries.selectedItem.label is not detected in the last element?

    Entries.addEventListener (Event.CHANGE, EntriesChange)

                   }

              }

    "" var str_entries:String = "";

    //set default

    function EntriesChange(e:Event):void {}

    for (var i = 0; i < myArray.length; i ++)

                   {

    { if (myEntries.selectedItem.label == {myArray [i].)}

    str_entries = myArray [i];

    trace ("str_entries =" + str_entries)

                        }

                   }

              }

    You can not able to delete the index 0th, the code below, did the trick:

    delbtn.addEventListener (MouseEvent.CLICK, delfn);
    function delfn(e:MouseEvent):void {}
    var str:String=String(Entries.selectedItem.label).toLowerCase();
    for (var i = 0; i)<>
    var str1:String=String(myArray[i]).toLowerCase();
    If (str == str1) {}
    Entries.removeItem (Entries.selectedItem);
    If (Entries.length == 0) Entries.removeAll ();
    str_entries = myArray [i];
    }
    }
    }

  • Data from the drop-down list box database

    Hello

    I'm trying to understand how to add information from a database to a drop-down list box. I read two columns, the first is used as the element and the second for the value. There are several lines in the table, and I need an entry for each. Currently, he adds only a single entry. The vi is attached.

    Thank you

    Chris

    Hi again,

    Attach a VI... Is that what you mean?

  • Try to get the value of exports from the drop-down list box

    Using the "strikes a custom Script" for a drop-down list box:

    This works, but gives the current face value


    If (event.willCommit)
    {
    App.Alert (Event.value);
    }

    This works, but returns the previous export value


    If (event.willCommit)
    {
    App.Alert (Event.Target.value);
    }

    What I need is clicked on the current export value items as soon as we clicked.

    What I am doing wrong?

    Note that it returns nothing if event.willCommit is true, but it returns the value of the export, if it's false.

  • Drop-down list does not appear selected value

    Hello

    I have a problem. The output of a query results page. There are 2 fields must be updated: scholarshipID and amount. I want to update my request at a time. My dynamic drop-down list does not appear selected value. The value is there, but it does not recognize in the drop-down list. I could not find the error. My code is below, so please help...

    < name cfquery = "getStudentsData" datasource = "#application. DSN #">"
    Select StudentID, fname, lname, GPA, Tbl_Students.ID, ScholarshipID, rise, Tbl_StudentsScholar.ID as the SSID, AwardStatus
    of Tbl_Students, Tbl_ApplyYear, Tbl_EduBckgrnd, Tbl_StudentsScholar
    where Tbl_Students.ApplyYr = Tbl_ApplyYear.id
    and Tbl_Students.id = Tbl_EduBckgrnd.SID
    and Tbl_Students.ID = Tbl_StudentsScholar.SID
    and ApplyYear = 1
    and steps = 7
    order by studentid
    < / cfquery >

    < name cfquery = "getScholarship" datasource = "#application. DSN #">"
    Select AcctNum, scholarship, Tbl_Scholarships.id, Code
    of Tbl_Scholarships, Tbl_DistCode
    where Tbl_Scholarships.DistCode = Tbl_DistCode.id
    AcctNum order
    < / cfquery >

    < cfparam name = 'X' default '0' = >
    < cfparam name = default "CounterX" = "0" >

    <!--get scholarship-->

    < cfif getStudentsDataRet.RecordCount eq 0 >
    < class p 'paragraph' = > No Records Found < /p >
    < class p = "pageheight" > < / p >
    < class p = "pageheight" > < / p >
    < cfelse >


    < class p = "submitmessage" > records found - < cfoutput > #getStudentsDataRet.Recordcount # < / cfoutput > < / p >
    < table width = "98%" border = "1" cellpadding = "3" cellspacing = "0" style = "" border-collapse: collapse "bordercolor ="#000000"align ="center">"
    < class tr = "steptext2" bgcolor = "#999999" align = "center" >
    < td width = "10%" > Student ID < table >
    < td width = "9%" > name < table >
    < td width = "9%" > name < table >
    < td width = "5%" > GPA Cum < table >
    < td width = "5%" > account # < table >
    < td width = "5%" > < table > amount
    < td width = "20%" > account # | Dist Code | Scholarship name < table >
    < /tr >

    < do action = "updateAward.cfm" method = "post" name = "AwardForm" > "
    < cfoutput query = "getStudentsDataRet" >
    < cfif eq x 0 and x neq getStudentsDataRet.recordcount >
    < cfset x = 1 >
    < cfelseif x neq (getStudentsDataRet.recordcount + 1) >
    < cfset x = x + 1 >
    < / cfif >
    < class = "paragraph" tr >
    < td > #StudentID # < table >
    < td > #lname # < table >
    < td > #fname # < table >
    < td > #GPA # < table >


    < cfif AwardStatus eq 2 >
    < name cfquery = "getStudentsScholar" datasource = "#application. DSN #">"
    Select Code, Tbl_Scholarships.id, AcctNum, scholarships
    of Tbl_Scholarships, Tbl_DistCode
    where Tbl_Scholarships.DistCode = Tbl_DistCode.id
    and Tbl_Scholarships.ID = #getStudentsDataRet.ScholarshipID #.
    < / cfquery >
    < / cfif >
    < td >
    < select name = "" scholarshipID_ #X # "onChange =" showMessage_ #X #(this.options[this.selectedIndex].value) ">"
    < option value = "" > < / option >
    < cfloop query = "getScholarshipRet" >
    < option value = "" #id # "selected < cfif getStudentsDataRet.ScholarshipID eq id > < / cfif > > #AcctNum # < / option >"
    < / cfloop >
    < / select >
    < table >
    < td > < input name = "" amount_ #X # "type ="text"size ="5"< cfif amount gt 0 > value = ' #NumberFormat (amount, 99.99) # ' < / cfif > / > < table >"
    < td > < cfif AwardStatus eq 2 > #getStudentsScholar.AcctNum # | #getStudentsScholar.Code # | #getStudentsScholar.Scholarship # | #getStudentsDataRet.ScholarshipID # < / cfif > < table >
    "< input name =" "IndexID_ #x #" type = "hidden" value = "#SSID #" / >
    < /tr >
    < / cfoutput >
    < cfoutput > < input name = "CounterX" type = "hidden" value = "" #getStudentsDataRet.RecordCount # "/ > < / cfoutput >"
    < b >
    < td align = "center" colspan = "11" height = "50" valign = "middle" > < input name = "Submit" type = "submit" value = "Submit" / > < table >
    < /tr >
    < / make >
    < /table >
    < / cfif >

    the syntax is: getStudentsDataRet.ScholarshipID [1]

    where '1' is the line number to specify

  • Adobe Acrobat 9: Javascript populated the drop-down list box - response selected array will not save

    I have a combo on one of my forms box that is filled with the help of a Javascript array.  The drop-down list box is filling very well, but when an item is selected in this drop-down list box, the selected item does not save when the user saves the document.  Any suggestions as to what is the problem and how it can be corrected?  I am a loss to know where even to start the search.  Any help is greatly appreciated.

    Thank you.

    Lisa

    It seems that the drop-down list box may be getting filled with code that runs when the form is opened. If so, it will overwrite the value selected, whenever it opens. The solution would be to change the code so that it is not than that. If not, you can post the form somewhere so we can take a look?

  • Non-visible value in the drop-down list box

    Hi all

    I have a bar of control with 5 drop-down list boxes.

    As the user, the value in a box, others are refined to include only items that are related to the user's selection.

    All works well with an exception in a single list, the value is this drink is not visible.

    Anyone has previously met and nobody knows how to correct?

    Thanks in advance for any help.

    Duh.

    In the one case where him point fails to show I was not have cast the value as a string.

    Casting solved the problem.

Maybe you are looking for