I'm having trouble understanding the documentation of SelectMultipleField. it's written that
"You’ll need to specify the HTML size attribute to the select field when rendering."
and I don't understand where do I specify exactly.
attached is the code (which worked) for the select field, what changes should I do for the SelectMultipleField?
form.py
domains = SelectField(label='Domain', choices=DOMAINS, validate_choice=True, validators=[InputRequired()])
html
<div class="form-group">
{{ form.domains.label(class="form-control-label") }}
{% if form.domains.errors %}
{{ form.domains(class="form-control form-control-lg is-invalid") }}
<div class="invalid-feedback">
{% for error in form.domains.errors %}
<span>{{ error }}</span>
{% endfor %}
</div>
{% else %}
{{ form.domains(class="form-control form-control-lg") }}
{% endif %}
</div>