Opened 15 years ago

Closed 15 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:


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 15 years ago by bill

Milestone: 0.40.9
Owner: changed from anonymous to haysmark

In 0.9 this key/value functionality is in FilteringSelect?. Mark, is this working in 0.9?

comment:2 Changed 15 years ago by haysmark

Resolution: fixed
Status: newclosed

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.

Note: See TracTickets for help on using tickets.