Displaying a global form error

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.

Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy