multiple boxes depending upon selection

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default multiple boxes depending upon selection

    I am trying to write the following, and basically if the user chooses the
    second string i want just one box to appear, if the third string is chosen i
    want the first AND the second box to appear, and so on...... help!

    <mx:FormItem id="tradingTimeItem" label="How long has your business been
    trading" required="true">
    <mx:ComboBox id="tradingTime" >
    <mx:dataProvider>
    <mx:Array>
    <mx:String>Please Select</mx:String>
    <mx:String>New Start</mx:String>
    <mx:String>Less than 1 year</mx:String>
    <mx:String>1 - 2 Years</mx:String>
    <mx:String>2 - 3 Years</mx:String>
    <mx:String>More than 3 Years</mx:String>
    </mx:Array>
    </mx:dataProvider>
    </mx:ComboBox>
    </mx:FormItem>
    <mx:FormItem id="tradingTimelessthanItem" label="Your turnover year to date"
    required="{tradingTime.selectedItem=='Less than 1 year'}"
    visible="{tradingTime.selectedItem=='Less than 1 year'}" >
    <mx:TextInput id="tradingTimeLessthan1year" width="150" />
    </mx:FormItem>
    <mx:FormItem id="tradingTimetotwoItem" label="Turnover for previous 12
    months"
    required="{tradingTime.selectedItem=='1 - 2 Years' and 'Less than 1 year'}"
    visible="{tradingTime.selectedItem=='1 - 2 Years' and 'Less than 1 year'}"
    >
    <mx:TextInput id="tradingTimetotwo" width="150" />
    </mx:FormItem>
    <mx:FormItem id="tradingTimetothreeItem" label="Turnover for previous 12
    months"
    required="{tradingTime.selectedItem=='2 - 3 Years' and 'Less than 1 year'}"
    visible="{tradingTime.selectedItem=='2 - 3 Years' and 'Less than 1 year'}"
    >
    <mx:TextInput id="tradingTimetothree" width="150" />
    </mx:FormItem>
    <mx:FormItem id="tradingTimethreeplusItem" label="Turnover for previous 12
    months"
    required="{tradingTime.selectedItem=='More than 3 Years' and 'Less than 1
    year' }"
    visible="{tradingTime.selectedItem=='More than 3 Years' and 'Less than 1
    year'}" >
    <mx:TextInput id="tradingTimethreeplus" width="150" />
    </mx:FormItem>

    trickeyme Guest

  2. Similar Questions and Discussions

    1. multiple selection box
      Hi can anyone help me with a bit of code. I m trying to check on my form whether the user has made a selection from a multiple selection box? ...
    2. A selection changes on asp page with 6 dependent list boxes, when back
      Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date....
    3. Highlighting Selection in non-editable text boxes
      Hello all, a quick question. For a non-editable text box is there anyway to highlight the background (like when you hold the mouse button and...
    4. Hide text boxes based upon page selection via tab controls
      Use the Change event of the tab control. -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users -...
    5. Auto filling list boxes after combo box selection
      "Mark Y" <mycy77@yahoo.com> wrote in message news:04bd01c3464a$02bc87a0$a101280a@phx.gbl... First, I'd suggest not displaying the BookId if you...
  3. #2

    Default Re: multiple boxes depending upon selection

    Did you ever figure out a way to do this?

    Tracy
    ntsiii Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139