Different sets of fields

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!
Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Different sets of fields

Post by Travin » 25 Feb 2018, 18:09

Hi all!
I'm creating Payment Provider. I want to create 4 necessary fields. But if 5th field is filled too, other 4 become not necessary. How can I do that? Thanks!
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Re: Different sets of fields

Post by Travin » 25 Feb 2018, 18:27

Not actual. Did it with JS
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Different sets of fields

Post by aimeos » 26 Feb 2018, 23:09

Yes, in the frontend you have to use JS. In your service provider, you can check if the constraints are valid in the process() method where you should throw an exception if they are not met.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply