Validate one panel at time

This sample display a multi-panel form using the TMT Validator and tmt.widget.expandpanel

Here form fields are validated one panel at time, since we use the tmt:expandpanelform attribute.
Each time the user leaves a panel and moves to a new one, the previous is validated

Whenever the form is submitted instead, all fields are validate in one single swap

Assign tmt.widget.expandpanel.util.validate() to onsubmit event
Your data
Comments
About Italy
Ladies
Default callback (JavaScript alert)
Your data
Comments
About Italy
Ladies
Different callbacks for <form> and panels
Your data
Comments
About Italy
Ladies