View Full Version : monitorValid card layout

5 Mar 2012, 12:18 PM
Hi all,

I have a form including a card layout which I switch depending on the selection made in the upper form fields.

My problem is, that the form is also invalid, even if only the form fields in the non-visible card layout are invalid. Calling the getForm().isValid() method shows always false as long as ALL form fields are valid.

Is there a possibility to configure the form layout to only look for valid form fields in the visible items (the activeItem in the form field and the form fields that are not in a card layout)? Or any ideas how to resolve such an issue? Or to use the formBind and monitorValid configuration to disable buttons if the form is not active? I thought about overriding the bindHandler method, but this is hopefully not the only way?!

Thanks and best wishes,