Archive: custom form next button disabled


custom form next button disabled
hi to all,
I have made a custom page which has 2 textboxes.
On the same page there are NEXT,CANCEL and BACK buttons.
I am able to hide back and cancel buttons.
But what I want is that the NEXT button be disabled till the user doesn't fill both the TEXT fields.

In other words, the NEXT button should be disabled and get enabled only when user fills both the TEXT fields.

Thanks in advance.


Look into nsDialogs example. You'll use OnChange event(s) and EnableWindow instruction.


thanks for the reply
but i want to know whether disabling and then enabling of NEXT button is possible or not.


It is possible. EnableWindow does this job.
Please, try to search the forum and documentation before posting. Thanks.