Forum
Perch Input Wrap
Hi,
I'm using wrap on a form input which wraps the input in a div as expected, but it also appears in the outputted HTML. It's not causing any issues to how it works but it doesn't validate, and looking at your documentation it doesn't look like that's suppose to happen. I'm using the latest Forms app with Perch 2.7.3
In my template:
<perch:input type="radio" id="provide_2" options="Yes,No" wrap="div.half-width" label="Garment 2: Providing own" />
Output HTML:
<div class="half-width">
<input id="form1_provide_21" name="provide_2" type="radio" wrap="div.half-width" value="Yes" /
><label for="form1_provide_21">Yes</label></div><div class="half-width"><input id="form1_provide_22" name="provide_2" type="radio" wrap="div.half-width" value="No" /><label for="form1_provide_22">No</label></div>
</div>
Thanks, I'll get it fixed.
Should be fixed for 2.7.8.