Form validation - one or the other

1 reply · opened Sep 19, 2023

FfotobobSep 19, 2023

I have a situation with a form that needs to have some special fields validated.

The problem is:

there are two fields - VAT number and tax number - but only one of the two is required depending on the status of the person doing an order (VAT number if a company - tax number if a private person).

Any way to make a validation class that will require only one or the other of these fields to be filled out?

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard