Title: CFORMS - Performing a Form level validation

Hi all
        I tried looking for a "definition" text on the preferred way of performing a Form level validation.
        What I mean is that I need to perform validation that is relevant to the Form -not to specific widget. I.E. - I have a form with 2 widgets, and I need to check that either 1 of them has a value in it.

        So - I know I can have a validation in one of the widgets, and in it write some _javascript_ to check the other as well, and then output the error to a "fi:validation-errors" tag - to show it in a central place.

        But this seems like a work around rather than a real plan..

        A second and related question will be - In my form with 2 widgets, each one of them has its own validation. So - they are not required, but in case the user enters something into them, It should be validated. After this validation, I will need to have the "Form Level" validation I mentioned above.

        If you could share from your experience, or direct me to the right page of Docu, I would very much appreciate.

        Thanks
 
Elad Messing

Reply via email to