hi I have an issue when using Ace and Formit's utility snippet for radio buttons and checkboxes in a static/external file. For example this code works fine in a chunk(which is formit's official example:
<label>
Numbers:[[+fi.error.numbers]]
<select name="numbers" value="[[!+fi.numbers]]">
<option value="">Select an option...</option>
<option value="one" [[!+fi.numbers:FormItIsSelected=`one`]]>One</option>
<option value="two" [[!+fi.numbers:FormItIsSelected=`two`]]>Two</option>
<option value="three" [[!+fi.numbers:FormItIsSelected=`three`]]>Three</option>
</select>
</label>
But when I paste this same code into a static html file in my modx file panel this part of the syntax turns yellow and gives an error "Unexpected character in unquoted attributes":
[!+fi.numbers:FormItIsSelected=`one`]]
[!+fi.numbers:FormItIsSelected=`two`]]
[!+fi.numbers:FormItIsSelected=`three`]]
Is there any way I can get around this?
Thanks
<label>
Numbers:[[+fi.error.numbers]]
<select name="numbers" value="[[!+fi.numbers]]">
<option value="">Select an option...</option>
<option value="one" [[!+fi.numbers:FormItIsSelected=`one`]]>One</option>
<option value="two" [[!+fi.numbers:FormItIsSelected=`two`]]>Two</option>
<option value="three" [[!+fi.numbers:FormItIsSelected=`three`]]>Three</option>
</select>
</label>
But when I paste this same code into a static html file in my modx file panel this part of the syntax turns yellow and gives an error "Unexpected character in unquoted attributes":
[!+fi.numbers:FormItIsSelected=`one`]]
[!+fi.numbers:FormItIsSelected=`two`]]
[!+fi.numbers:FormItIsSelected=`three`]]
Is there any way I can get around this?
Thanks