Performing validation in the admin panels

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Posts: 13
Joined: 06 Mar 2024, 04:42

Performing validation in the admin panels

Post by jafo66 » 28 Mar 2024, 22:46

I'm looking to validate fields in the new admin panels I've made. There is already the ability from the admin.js to check if a required field is empty. How do I expand that to validate that a field has numbers, etc.? I'm not too picky as to whether that validation happens on the server side or in the client.

User avatar
Posts: 7856
Joined: 01 Jan 1970, 00:00

Re: Performing validation in the admin panels

Post by aimeos » 03 Apr 2024, 07:52

If not strict validation is required on the server side for security reasons, you can use input fields of type "number" to enforce numbers and add the "mandatory" CSS class. Then, it's automatically checked if there's a value in it and marked if not after the user clicks on the "Save" button.
Professional support and custom implementation are available at
If you like Aimeos, Image give us a star

Post Reply