I thought it would be relatively straightforward to convert the buttons into HTML select/options, but it seems the majority of browsers don't support onClick or onChange events for each option. This means I need to move the onChange event into the select tag, which sort of works if I hadrcode the action to call a single template, but I'm having difficulty getting the right syntax to substitute in the option index.
Here's what I have so far (picks just the first template, but drop down is reset to default value after picking):
Code: Select all
<select name="templatePicker" onChange="$('#Template1').submit()">
<option>-</option>
<option value="$Text{"Example Template 1"}">$Text{"Example Template 1"}</option>
<option value="$Text{"Example Template 2"}">$Text{"Example Template 2"}</option>
</select>