title: Jinja/Wtform aria-required validation
body: <p>I have a front-end that generates bootstrap forms via a simple macro:</p>
  
  
  
  <pre><code>{% macro render_field(field, class_='', label_visible=true) -%}
  
  &lt;div class="form-group {% if field.errors %} has-error {% endif %}"&gt;
      {% if (field.type != 'HiddenField' and field.type !='CSRFTokenField') and label_visible %}
          &lt;label for="{{ field.id }}" class="control-label"&gt;{{ field.label }}&lt;/label&gt;
      {% endif %}
      {{ field(class_='form-control', **kwargs) }}
      {% if field.errors %}
          {% for e in field.errors %}
              &lt;p class="help-block"&gt;{{ e }}&lt;/p&gt;
          {% endfor %}
      {% endif %}
  &lt;/div&gt;
  
  {%- endmacro %}
  </code></pre>
  
  <p>A wtform that I use looks like this:</p>
  
  
  
  <pre><code>class CommentForm(Form):
      comment = TextAreaField(validators=[DataRequired('Please enter your comment.')])
  </code></pre>
  
  <p>Is it possible to add front-end validation in the form of <code>aria-required="true"</code> for the fields that have as validator <code>DataRequired</code>?</p>
  
  <p>If so, how?</p>