I’ve read this post:
http://modxcms.com/forums/index.php/topic,22072.0.html
and searched the forums but I haven’t found exactly what I need.
I’m using eForm as a set of search/filter fields (both text and dropdowns) that I’m passing to custom DB table. Results are displayed on the same page. I’m trying to "keep/save" the values typed in by the user once they hit the results page. I’ve got the text fields working by:
<input type="text" name="mytextfield" value="[+mytextfield+]" />
But how would I do the same thing with a dropdown? The following obviously doesn’t work:
<select name="myselfield" value="[+myselfield+]">....</select>
I’ve got a function defined for eFormOnBeforeFormParse event. But it only sets the value of $fields[’myselfield’].
Any suggestions? Thanks.