On submit if the form has validation errors then on refresh of the page the select box selects the default category.

CommentFileSizeAuthor
select.jpg21.83 KBfredy.raj

Comments

wim leers’s picture

Confirmed. I'm not yet sure how to tackle this problem though.

derjochenmeyer’s picture

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

wim leers’s picture

Assigned: Unassigned » wim leers
Status: Active » Fixed

@derjochenmeyer: that's not a proper solution. We need to take advantage of the Form API to fix this.

Fix committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)