Dialog button not enabled on condition - Advanced Installer Community

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!

timc
Posts: 20
Joined: Wed Apr 30, 2008 12:43 am

Dialog button not enabled on condition

Hi,

One of our installer dialogs has a check box and an associated text field. If the check box is checked, the Next button is disabled until the text field is
populated with data. The problem is, the Next button does not enable after entering data unless the user goes back one dialog, then forward two: Back,
Next, Next.

There are three control conditions attached to the Next button on dialog AS_AdditionalFeaturesDlg:
* ADDITIONALFEATURESDLGCHECKBOX_1_PROP_3 AND IONTAS_SERVER_NAME : Enable
* ADDITIONALFEATURESDLGCHECKBOX_1_PROP_3 AND (NOT IONTAS_SERVER_NAME) : Disable
* NOT ADDITIONALFEATURESDLGCHECKBOX_1_PROP_3 : Enable

ADDITIONALFEATURESDLGCHECKBOX_1_PROP_3 is the name of the checkbox that, when checked, enables the text field. IONTAS_SERVER_NAME is the
property name of the text field. It does not have a default value.

I've got a small example which exhibits this behavior, but was not able to add it as an attachment.

Thanks,
Tim
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Dialog button not enabled on condition

Hi Tim,

Unfortunately the Windows Installer controls which cannot use Published control events cannot update other controls. For example, an edit box cannot update a button because it has focus until another control is selected (for example the "Back" button).

A solution for this would be to add a "Validate" button which will be clicked by the user in order to update the "Next" button. Another solution would be to use a validation method which makes sure that an edit box cannot be empty.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”