Hi,
in a form if there is a field and a global error both messages are showed.
I would like to show the global errors only if there isn't any field error.
Any idea?
Javi
Hi,
in a form if there is a field and a global error both messages are showed.
I would like to show the global errors only if there isn't any field error.
Any idea?
Javi
This snippet should do the job
<?php if (0 == count($form->getErrorSchema()->getErrors())):?>
<?php echo $form->renderGlobalErrors()?>
<?php endif?>