Validation for request input field
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
Validation for request input field
Hello,
How could we make a validation for an input field and display the error message inside the template page?
How could we make a validation for an input field and display the error message inside the template page?
Re: Validation for request input field
Where do you want to add a validation? In the address page of the checkout it's built in for example.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
Re: Validation for request input field
I made a form in the profile page that makes the merchant user (just merchants) to add a product. I made it but it remain the validation for the input.
I use laravel validation request and I display the errors by ajax, and everything works. But I wonder if there is already created in aimeos.
I use laravel validation request and I display the errors by ajax, and everything works. But I wonder if there is already created in aimeos.
Re: Validation for request input field
You can use the Laravel validation or you can implement it in your HTML client class yourself.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
Re: Validation for request input field
How we can display validation errors in template class?
In a blade syntax we use "@error" or {{$errors}}, but in template we cannot!
In a blade syntax we use "@error" or {{$errors}}, but in template we cannot!
Re: Validation for request input field
If you store the errors in a view variable named e.g. "$view->error = '...'", you can access it in your template using "<?= $this->get( 'error' ) ?>"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star