For a FilteringSelect, even if I clear the value with "Backspace", then I submit the form, the FilteringSelect still hold the old value.
I use setValue(null) or setValue("") on the FilteringSelect, still doesn't help.
Any hint?
Thanks!
How to set null value/clear value on FilteringSelect
Submitted by sprming on Mon, 11/12/2007 - 02:40.
- Login or register to post comments
- Subscribe post

I believe the design of
I believe the design of FilteringSelect is that only valid values can be entered/submitted. If you input an invalid value, the displayed/submitted value will revert to the last valid value.
A valid value is one which is included in the datastore or options. If an empty/blank value is important for you to submit, try including it in the list of valid values.
clear value on FilteringSelect
do this:
id = dijit.byId("");
id.textbox.value = "";
id.valueNode.value = "";
clear value on FilteringSelect
Shouldn't this do the same thing?
dijit.byId("someID").setValue( value: "someValue")
However, I tried it and couldn't get the Aptana IDE to recognize it as valid. It kept reporting "missing ) after argument list".