Closed animaux closed 7 months ago
This is expected behaviour, so it's easier to show errors when using API submission mode.
If you want to customize it, you can override the error snippet in site/snippets/dreamform/fields/partials/error.php
and site/snippets/dreamform/form.php
wrap them both in an if
statement.
However, my recommended solution would be to hide the div with .error:empty { display: none; }
.
Hmn ok. Already did that as a quick fix. Support is quite good nowadays.
The following code is always included in the form. Apart from semantic/redundancy reasons this creates an empty box when styling the error message with a background and padding:
<div class="error" data-error=""></div>