I would like to validate custom customer data in admin/customers.php without using javascript form validation. If the data input is bad, I want to display a message at the top of the admin customer update form page. I've set up an observer triggered by the NOTIFY_ADMIN_CUSTOMERS_UPDATE_VALIDATE notifier. If the $_POST custom data is bad, I set $error to true and added a session message to $messageStack. But the message does not display on the page that appears when the update button is clicked. You have to click the update button on that page again to get the message to appear.
Is there any way to get the message to display on the customer update form page when the update button is clicked instead of clicking update twice to get the message displayed?
Thank you!
Dave
zc157c, php 8.0.2
Bookmarks