I have a requirement to use a button to perform a form wide validation prior to submit, and depending on the result, certain section will be shown. We want to show the error items messages like the "Submit" button. Is there a way to do it?
I had a look on the Form.validate function, it seems to return a validate result in an object, but I want the error to be shown on the page, how can this be achieved?
You can achieve this by validating the whole form with Form.validate and then assigning the result object back into the Form.validation object which controls the display of errors.