tags:

views:

141

answers:

2

Hi,

I have created a form in ExtJS.

I am validating the text fields on the form e.g. if the fileds are empty or there are some ajax requests that are sent to the server and returs some results.

The Submit button is initially disabled, and what I want is to enable the button once the validations are done(if all validations are ok).

how can I achieve this???

Can anyone help in this.

Thanks in advance!!!

A: 

I got the answer to my question.

There is formBind property of Button in a form if it is set to true and monitor Vali of form is set to true then button is disable until the form validations are successful.

But I am using tab panel where there are two forms and i need to submit both the fprms on one click and am adding the botton using tabpanelid.addboutton(), which doesn/t support the formBind property.

Please help on this.

Thanks!

EXTJS newbie
A: 
Stuart