This might be a bit of a Noob question but here I go:
Using Guest Entries on a site and cannot figure out how to make certain fields required. Those fields are marked as required in the CP but, when using Guest Entries, entries are submitted even when required fields are not filled in.
I can easily implement a front-end validation but I would like the validation to happen on the back-end before saving the entry as well.
- Should this happen automatically, am I missing something ?
- Do I have to create a validation "manually" and if so, how ?
EDIT:
After updating the plugin, this is how I displayed validation errors:
{% if entry.errors is defined %}
{% for errorField, error in entry.errors %}
{% for errorMessage in error %}
<ul class="form-errors">
<li>{{ errorField }} - {{ errorMessage }}</li>
</ul>
{% endfor %}
{% endfor %}
{% endif %}