{% with legend_class='col-sm-3 col-form-label' %} {% include 'drfformbootstrap4/legend.html' %} {% endwith %}

Lists are not currently supported in HTML input.