Hishiro
Posts: 11
Joined: Fri Jul 07, 2023 4:47 pm

Error when set disable / enable button

Hi guys.
im trying to set disable next button default. If edit_prop_1 value in use input = "hishiro2023" then next button enable.
i try set control condition
EDIT_1_PROP="hishiro2023"
action : enable

and
EDIT_1_PROP<>"hishiro2023"
action: disable.

when test UI it not working. after i input hishiro2023 in editbox and click cancel then next button enable.

Tell me why ? How to fix

https://youtu.be/aUVbGps1F3E
Thanks
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Error when set disable / enable button

Hello and welcome to our forums,

In order to achieve this, you have two options:

I. 1. Add the conditions on the Control Conditions tab as below:
control conditions.png
control conditions.png (113.93 KiB) Viewed 3327 times

2. Enable the Enhanced User Interface from the Themes page --> Settings tab:
eui.png
eui.png (30.98 KiB) Viewed 3327 times
Please note that the EUI requires an EXE package, as this feature is handled by our EXE Bootstrapper.

If you want to continue using an MSI, I'm afraid enabling the button while typing won't work and you have to use a refresh button or the Published Events of the Next button:

II. 1. Add the Published Events of the Next button as below:
published events.png
published events.png (69.17 KiB) Viewed 3327 times

2. The Control Conditions tab should be empty and the button should be enabled by default.

Please check the attached project file.

You can also have a look at our Validate user input and display specific icon/error message tutorial.

Let me know if you have any questions.

Best regards,
Liviu
Attachments
Your Application.aip
(24.63 KiB) Downloaded 167 times
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”