If you want to display an error message above the form when there are errors, open the process.php file and search for the term // Form data failed validation
. Make a new line immediately after this line and add the following code.
1 | $form->setError('There is an error with the submitted form. Please correct any errors below.'); |
$form->setError('There is an error with the submitted form. Please correct any errors below.');
Customize the message to suit, you can enter HTML so you are able to style your message to suit using CSS.