Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8893997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:23:15+00:00 2026-06-14T23:23:15+00:00

I am working on FLEX 4, and I’ve come across a curious problem regarding

  • 0

I am working on FLEX 4, and I’ve come across a curious problem regarding the FLEX 4combobox. Unlike a drop down list, the combo box permits the user to type in a value and the combobox will then display a list of suggested values. My problem is this: the combobox seems to permit the user to enter and save nonsensical values. For example, in the image below the list of permitted values is a collection of years from 1982 up to 2040.

enter image description here

However, the user can type “test” into the combobox and click save. The net result is that the end quarter/end year pair is 3-test. Obviously this is a nonsensical value.

Why is this happening? Is there a way to prevent this? I know the one can simply switch to drop down lists, but I prefer to keep comboboxes because of the “suggested value” functionality.

A follow-up question: Whatever fix there may be, is it possible to do it “globally”? Meaning, can we do a fix at one point in the code and it take effect throughout the entire project?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:23:16+00:00Added an answer on June 14, 2026 at 11:23 pm

    This is pretty standard behavior for this type of control. The ComboBox doesn’t know what makes the input valid or invalid. It is designed to accept any input and it’s our responsibility to validate that the input is appropriate for our applications.

    There are a few things you can do, some combination of these should help:

    • Set the restrict property of the ComboBox to a string that contains only the valid characters you will allow for input, like the string “0123456789”.

    • Use the maxChars property to limit the input to 4 characters.

    • Play around with the labelToItemFunction property. You can set this to a function that will decide what value to select based on the user’s input.

    • Use a NumberValidator or DateValidator to validate the user has entered an appropriate value (or just add this logic yourself in the save button’s click handler)

    • (probably less useful) Play around with the itemMatchingFunction property. You might be able to use this to automatically select the first/last (or whatever) value as a default rather than using the nonsensical input.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem solved, see below Question I'm working in Flex Builder 3 and I have
I'm working on Flash Builder with latest flex SDK. I have a problem getting
I am working on a modularized Flex application, and I am trying to cut-down
I am working on the flex tree drag and drop functionality and i have
I have a working Flex/BlazeDS application (for simple AMF remoting) with the following settings:
I'm working with flex, but actionscript ideas are just as good. The flex <s:Application>
I am working with Flex, Flash, Action Script and I want to browse the
I am working in flex and I am just setting a variable to false.
Currently I am working on flex application where I am using multicore variant of
I am working on flex dasboards and charting stuff. Till now I have build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.