move validation messages

I have a form with various different tabs, the save button being on the last one. Currently, if there are any errors on the form nothing happens when you click the save button and you have to click through each tab to find the fields with error messages.

Is it possible to have all the field error messages in one list as well so if you click on Save the errors appear by the relevant fields but also in a list by the save button. I’ve been searching but can’t find anything about whether this might be possible.

<?php $form = ActiveForm::begin(); ?>

<?= $form->errorSummary($model); ?>

I’d look at doing some jquery checking for errors before allowing users to go to the next tab.

One solution could be something that @skworden suggested and other one is to create simple JavaScript function that would be triggered whenever there is new validation request and it would look for any errors in the form fields (e.g. .has-error classes) in the tab and it would find the closest (e.g. using jQuery .closest() method) .tab (assume that you have this class for each tab) class and open it to show to the user.

How about move/copy the errorSummary() line to somewhere near the Save button?