Page 1 of 1

Different sets of fields

Posted: 25 Feb 2018, 18:09
by Travin
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!

Re: Different sets of fields

Posted: 25 Feb 2018, 18:27
by Travin
Not actual. Did it with JS

Re: Different sets of fields

Posted: 26 Feb 2018, 23:09
by aimeos
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.