Changes between Initial Version and Version 1 of Ticket #5974


Ignore:
Timestamp:
Feb 25, 2008, 2:57:01 PM (13 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5974 – Description

    initial v1  
    11Non-required <select> inputs in a native HTML form typically have a blank option in the drop down, to indicate that no value is specified.   (See for example the Milestone field when filing a new ticket in trac.)   Currently the only way for a developer to implement a non-required !FilteringSelect field is to do the same thing, to have a blank option in the drop down.
    22
    3 However, since FilteringSelect (which has the same UI as ComboBox) appears to the user more like an <input> than a <select>, the user expects to be able to clear the value just by backspacing over the data in the <input>, and doesn't expect to see a blank value in the drop down list.   It's also troublesome to have a blank item in your data store.
     3However, since !FilteringSelect (which has the same UI as !ComboBox) appears to the user more like an <input> than a <select>, the user expects to be able to clear the value just by backspacing over the data in the <input>, and doesn't expect to see a blank value in the drop down list.   It's also troublesome to have a blank item in your data store.
    44
    5 Modify !FilteringSelect so that clearing the <input> (by backspacing) makes getValue() return null or undefined (like a blank !DateTextBox).   Support required parameter for !FilteringSelect just like !ValidationTextBox... default would be required=true but developer can override.   If required=false then a blank input is not flagged as invalid.
     5Eliminate requirement that optional !FilteringSelect fields have a blank entry in the drop down.  Modify !FilteringSelect so that clearing the <input> (by backspacing) makes getValue() return null or undefined (like a blank !DateTextBox).   Support required parameter for !FilteringSelect just like !ValidationTextBox... default would be required=true but developer can override.   If required=false then a blank input is not flagged as invalid.
    66
    77setValue(null) (or maybe undefined) would clear the value, same as !DateTextBox.