{# Radio Button #} {% for any_schema in schema.any_of %} {% endfor %} {# Form #} {# Must be in separate loop or input fields will be between radio buttons. #} {% for any_schema in schema.any_of %} {% with schema=any_schema, input_id=input_id + id(loop.index0), label=False %} {% if any_schema.ref %} {% else %} {% endif %} {% endwith %} {% endfor %}