limiting combobox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jeffy
    New Member
    • Oct 2008
    • 3

    limiting combobox

    Newbie question:

    I have a bunch of comboboxes, and I only want the user to be able to accept a value in the list. I want them to be able to type in the field and have it auto position to the corresponding value in the list which works nicely, but how do I validate that the entry is one of the list items while they are typing?

    For instance:
    if the values are [Brian, Frank, Jeff, Martin] and they type JEFF it positions to JEFF, but if they type JEFFR, it stops positioning, but allows the entry.

    Any suggestions?
  • joedeene
    Contributor
    • Jul 2008
    • 579

    #2
    Have you looked at the Auto Complete Properties for a combo box? Or is that not what you're looking for?

    joedeene

    Comment

    • Curtis Rutland
      Recognized Expert Specialist
      • Apr 2008
      • 3264

      #3
      Well, there are ways to force a combo box to behave like a standard drop down list, but you won't be able to type in it. What you can do, is handle the "OnLeave" event, and then iterate through all the entries in the list and compare it to the current value.

      Comment

      • Jeffy
        New Member
        • Oct 2008
        • 3

        #4
        Thanks guys! I'll see what this does for me!

        Comment

        Working...