I want to restructure the output of the way Sprout Forms generates checkboxes and radio buttons from that of the input.html in templates/_components. I need the label to appear after the radio/checkbox input for styling/accessibility purposes.
But I'm not seeing the documentation to override without editing the plugin (obviously not a sustainable plan). Can I just put them in the designated Global custom form templates folder and have SproutForms look for form_overrides/radiobutton/input.html first?
Example of what I need to do:
<input type="radio"
{%- if id %} id="{{ id }}-{{ loop.index }}"{% endif %}
{%- if name %} name="{{ name }}"{% endif %}
{%- if value %} value="{{ value }}"{% endif %}
{%- if checked is defined and checked %} checked{% endif %}
{{- required -}}
{{- dataAttributes|raw -}}
>
<label {%- if id %} for="{{ id }}-{{ loop.index }}"{% endif %}>
{%- if label is defined %}{{ label|raw }}{% endif -%}
</label>