I have a combobox and checkbox on a dialog screen, I want to tick the checkbox based on the selection of a combobox value. Is this possible? if yes, How do I do this?
Also, you may want to uncheck the check box control if the user select another value. In order to achieve that you can add another Set installer property value - published event. In the Event Options you can have something like that:
I'm afraid that Published events support for ListBox, ListView, CheckList and ComboBox controls are available starting with the 10.1 version of Advanced Installer. Here are the Advanced Installer Release 10.1 Notes. Because the Maintenance Plan has expired, you can renew anytime and have access to application updates (both major and minor).
hi
i use version 15.3 and i add the two published event to my checkboc but the checkbox do not unchecked.
let me clarify:
i have two check box in a dialog and i wantif first checkbox unchecked the second checkbox become disable and unchecked.
i the checkbox diable by contron condion but not uncheck. could you please help me?
thanks in advanced
For this, you can use a "Radio button" control. To do this, you need to add the "Radio Button Group" control to one of your dialogs. By default, when a radio button is checked, the other one will be unchecked (the user can only choose one out of 2, 3, or more radio buttons).
That is possible with checkboxes as well. In order to achieve that, you can use the "Control Conditions" tab. Let's consider the following example:
- you have two checkboxes with the following properties: CHECKBOX_1_PROP and CHECKBOX_2_PROP
- now please go to the dialog containing your checkboxes, click on the checkbox control and, under the "Control Conditions" tab, please create the following conditions:
This way, when your user will choose one checkbox, the other one will become unavailable. When the user unchecks the checkbox, the another checkbox will become available so he can choose it.
hi
thanks for reply
i can enable or disable checkboxes
but my question is when the checkbox become disable i wanna uncheck it.
could you please tell me how to achieve this?
By following the steps I have given you above, once you check a checkbox, the other one becomes disabled, which means you can no longer check it. For example, if you have two checkboxes: say A and B:
- if you check A --> B becomes disabled (you can no longer check it)
- if you uncheck A --> B becomes enabled --> if you check B --> A becomes disabled
hi
thanks for reply.
i know that when check box disable the user can't change it's status,
'but if in your example if user checked Band then checked A, the B checkbox become disable
but status of B is checked that is not very good in UI feedback to user.
if you have working solution for this i appreciate your solution.
thanks
First of all, you should make sure that both of your CheckBoxes have their "Selected" attribute set to "False" ("Dialogs" page --> your dialog --> click on your "CheckBox" --> on the right pane, under "Value" --> the "Selected" attribute).
Please have a look on the following .aip file in which I have implemented this, for your reference: