views:

14

answers:

0

I'm creating a form with 6 panels. On the top of the form there is a combo. based on the selected combo value i'm showing one panel and hiding the remaining panels.If i declare vtypes for all panel fields,When the time of submission it will validates the fields of panels which are not visible also.

I want visible panel fields should be validated. Remaining should not be validated

How to deal with this situation please help me, Thanks in advance