splay
Posts: 58
Joined: Tue May 15, 2007 6:09 pm

Disable button when text box empty, enbale when not

Hi Guys,

I know this can be done with a checkbox but I want to do it with a Textbox.

I have a textbox that I want the user to fill and not move forward until they do, so the Next button will be disabled until the textbox has a value.

So, I click on the Next button and go to "Control Conditions" and add two conditions...

TextBox1 = "" Disable
TextBox1 <> "" Enable

It works if I fill in something in the TextBox1 and then Tab out of the textbox but normal users wouldnt try the Tab thing.

What I need it to do is for the Next button to enabke as soon as I write anything in the TextBox.

Thanks

Tony
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: Disable button when text box empty, enbale when not

Hi Tony,

I'm afraid that the property behind EditBox is updated only after the box losses the focus. This is the Windows Installer behavior.

So my suggestion is do something like this:
http://www.advancedinstaller.com/forums ... f=2&t=7736

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”