Jaxel
Well-known member
I have a very simple form:
How would I set it up so that when a selection is made, it automatically submits?
Code:
<form action="{xen:link 'reports/mads/edit', $report}" method="post" class="xenForm AutoValidator">
<select name="mad_status" id="ctrl_status" class="textCtrl autoSize">
<option value="">({xen:phrase unspecified})</option>
<option value="allow" {xen:selected "{$report.mad_status} == 'allow'"}>{xen:phrase allow}</option>
<option value="deny" {xen:selected "{$report.mad_status} == 'deny'"}>{xen:phrase reject}</option>
</select>
<input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
</form>
How would I set it up so that when a selection is made, it automatically submits?