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!

philb1208
Posts: 44
Joined: Thu Jul 04, 2019 3:24 pm

Dialog button control conditions.

HI,

In my installer i have a dialog called "System Location". The dialog has the following components

SYSTEM_LOCATION_TAG = Combo box
MULTI_SITE_CHECKBOX = Checkbox
MULTI_SITE_TAG_VALUE = Edit Box

I have added controls to the "next" button on this dialog to make sure we collect any required information. So..

Code: Select all

1) SYSTEM_LOCATION_TAG <> "Select One" AND MULTI_SITE_CHECKBOX = "Yes" AND MULTI_SITE_TAG_VALUE = ""   - Action: Disable

2) SYSTEM_LOCATION_TAG <> "Select One" AND MULTI_SITE_CHECKBOX = "Yes" AND MULTI_SITE_TAG_VALUE <> "" - Action: Enable

3) MULTI_SITE_CHECKBOX = "Yes" AND MULTI_SITE_TAG_VALUE = "" - Action: Disable

4) SYSTEM_LOCATION_TAG = "Select One" - Action: Disable

5) SYSTEM_LOCATION_TAG <> "Select One" - Action: Enable

6) MULTI_SITE_CHECKBOX = "Yes" AND MULTI_SITE_TAG_VALUE <> "" - Action: Enable

The edit box is disabled unless the check box is ticked.

These all seem to work as expected, however I've found some strange behaviour (probably not that strange, but unexpected).

If I choose a value from my combo box, the button is enabled. If i then select "Select One" as the option the next button is disabled immediately. If i switch between this and an accepted value the button is disabled/enabled each time.

If i tick the checkbox, the next button is disabled until i enter a value in the edit box. However, if i deselect the checkbox without entering any information in the edit box the "next" button remains disabled. If i select another option from the combo box the next button is then enabled again.

How can i achieve the same behaviour as the combo box with this checkbox?

Hope that makes sense :)
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Dialog button control conditions.

Hello Phil,

Thank you for the explanation.

I have tested this scenario and indeed, you are right, the button remains disabled. However, this behavior is normal due to the fact that you do not have any control condition which enables it afterwards. Here is 1 more control condition which you can add, that will enable the "Next" button when you uncheck the checkbox:

Code: Select all

NOT MULTI_SITE_CHECKBOX AND MULTI_SITE_TAG_VALUE = ""
Action: Enable

Currently, all you control conditions are for when the checkbox is checked, however you never specify what should happen if it is unchecked.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
philb1208
Posts: 44
Joined: Thu Jul 04, 2019 3:24 pm

Re: Dialog button control conditions.

Thank you Catalin,

It was mashing my brain trying to work it out, I'd be going round in circles.

Thank you Catalin.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Dialog button control conditions.

You are always welcome, Phil.

I am glad I could help.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”