We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

deepaksrivastav
Posts: 6
Joined: Mon Jun 25, 2007 12:42 pm

Disable Next Button when a Simple Edit box is empty

Hi,

I am doing the following to disable the next button when a simple edit box in a dialog is empty.

In Control Conditions for "Next" button i am adding two new conditions:

if SIMPLE_EDIT_BOX="" then Disable
if SIMPLE_EDIT_BOX<>"" then Enable

The problem is, when i enter something in the simple edit box, the next button is not getting enabled, if i go back to the previous dialog and then come back to this dialog, only then is the Next button enabled.

Any idea on how to solve this?

Regards,
Deepak

[/quote]
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The property value of the EditBox is not automatically refreshed when you type something in it. This is the Windows Installer behavior.

My suggestion is to add a message box on the "Next" button to inform the user that the EditBox cannot be empty.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
lmathys
Posts: 2
Joined: Mon Jul 02, 2007 10:51 pm

gigi wrote:Hi,

The property value of the EditBox is not automatically refreshed when you type something in it. This is the Windows Installer behavior.

My suggestion is to add a message box on the "Next" button to inform the user that the EditBox cannot be empty.

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

I would like to add this functionality - to show a message box - however, your guides and tutorials do not explain how to do this very well. Also, why is the ErrorDlg excluded from the list of "SpawnDialog" new control event? I would appreciate a detailed example of how to show an error dialog to prevent the installer from progressing if the user does not enter data into the EditBox.
lmathys
Posts: 2
Joined: Mon Jul 02, 2007 10:51 pm

lmathys wrote:
gigi wrote:Hi,

The property value of the EditBox is not automatically refreshed when you type something in it. This is the Windows Installer behavior.

My suggestion is to add a message box on the "Next" button to inform the user that the EditBox cannot be empty.

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

I would like to add this functionality - to show a message box - however, your guides and tutorials do not explain how to do this very well. Also, why is the ErrorDlg excluded from the list of "SpawnDialog" new control event? I would appreciate a detailed example of how to show an error dialog to prevent the installer from progressing if the user does not enter data into the EditBox.
Nevermind, I see how to do it. I found the new entry for a "spawn dialog" in the Install Sequence tree.

Return to “Common Problems”