Opened 14 years ago
Closed 14 years ago
#3896 closed enhancement (fixed)
[Widget]Combox will submit the combo box value when the selected value is empty
Reported by: | guest | Owned by: | haysmark |
---|---|---|---|
Priority: | low | Milestone: | 0.9 |
Component: | General | Version: | 0.4.2 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description
As title, if I assign an empty value but the display field is not empty, it'll submit the display value instead the empty value.
i.e. I write the following code: <select widgetId = 'usernamecombo' name="username" dojoType="combobox">
<option value="">All</option> <option value="justicejiang">Justice Jiang</option>
</select> If I choose 'All' and submit, I'll receive All in the request. Though I know this will be helpful if our combo box can receive user's input directly. But could you give us a chance to change this behavior manually? Sometimes we do need an empty submit value and with a not empty display value.
Change History (2)
comment:1 Changed 14 years ago by
Milestone: | 0.4 → 0.9 |
---|---|
Owner: | changed from anonymous to haysmark |
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
This works in 0.9. test_FilteringSelect has a blank option with a hidden value of "blank", so you can clearly map blank display values to non-blank submit values.
In 0.9 this key/value functionality is in FilteringSelect?. Mark, is this working in 0.9?