davidesharpe
Posts: 56
Joined: Fri Jul 01, 2011 4:56 am

Enable control, dependant on choice in combo box

Wed Apr 11, 2012 12:43 am

How can I enable a specific control dependant on the choise in a combo list.

I have a combo list that contains some items 'Sql Server, Oracle, ..' when certain of these are selected, i wish another control 'Server' to be enabled for editing, but when others are selected it should be disabled for editing, how can i achieve this ?

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: Enable control, dependant on choice in combo box

Wed Apr 11, 2012 10:02 am

Hi,

If you want to achieve this you can proceed as follows:
Select the control that you want to be enabled or disabled depending on what ComboBox item is selected. Now add two control conditions, from "Control Conditions" tab and edit them as follows:

CONDITION : COMBOBOX <> VALUE
ACTION : Disable

CONDITION : COMBOBOX = VALUE
ACTION : Enable

Please keep in mind that COMBOBOX represents the property name of your ComboBox control and VALUE represents the value associated with the ComboBox item that should enable your control (see our tutorial about Populate ComboBox and ListBox controls).

Regards,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”