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: EnableThe 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
FOLLOW US
Get the latest news in Application Packaging