On submit if the form has validation errors then on refresh of the page the select box selects the default category.
| Comment | File | Size | Author |
|---|---|---|---|
| select.jpg | 21.83 KB | fredy.raj |
On submit if the form has validation errors then on refresh of the page the select box selects the default category.
| Comment | File | Size | Author |
|---|---|---|---|
| select.jpg | 21.83 KB | fredy.raj |
Comments
Comment #1
wim leersConfirmed. I'm not yet sure how to tackle this problem though.
Comment #2
derjochenmeyer commentedI could think of a jquery solution:
a php funtcion that picks up the selected terms (together with the inactive options) in an associative array and (on validation error) builds a jquery snippet that fills the set of selectors with the previously selected items.
Comment #3
wim leers@derjochenmeyer: that's not a proper solution. We need to take advantage of the Form API to fix this.
Fix committed.
Comment #4
(not verified) commented