Hi All,

So I did the following, can an Expert please varify that I did it the right way?

As I had Form Items in different Cards that are in a Responsive view I created 
a Form for each card. Both Forms had the same triggerButton and Submit 
function. I created a 2 Custom Validation functions (one for each form)that 
checked form items from both Forms and set a boolean as to wether its 
particular form was valid. The submit function checks theses two bools, if they 
are both true the form(s) are submitted. 

Seems to be working well. Am I on the right track?


On 2021/03/17 16:22:05, David Slotemaker de Bruine 
<[email protected]> wrote: 
> Hi,
> 
> I need to validate a form. I have been checking out the TDJ example and have 
> some questions:
> 
> Can you write you own validation function that validates an array of 
> validators that you have specified (Like in Flex)?
> 
> Example I have 2 TextInputs and a Combo. The form can only be submitted if 
> there is a value in one or several of the input containers. Looking at the 
> example it looks like ALL validators need to be valid before submission can 
> occur.
> 
> I have different form items in different Card containers (as the Card 
> containers are responsive), can I wrap all the Card containers in a Form and 
> validate that them? 
> 
> Cheers
> 
> David
> 
  • Validation David Slotemaker de Bruine
    • Re: Validation David Slotemaker de Bruine

Reply via email to