Login Register

How to set null value/clear value on FilteringSelect

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!

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".