Matt
Posts: 109
Joined: Tue Oct 19, 2010 4:54 pm

enable edit boxes depending on a Radio button

Hi,

I would like to enable an edit box only if the user selects the yes Radio button is there a way of doing this.

Matt
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: enable edit boxes depending on a Radio button

Hi Matt,

Unfortunately, only checkboxes, buttons and listboxes( with Enhanced UI only ) can publish events in Windows Installer.

This being the case you can replace the radio buttons with checkboxes to achieve the same behavior. Here is a thread to help you with this:
http://www.advancedinstaller.com/forums ... 800#p42640

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Matt
Posts: 109
Joined: Tue Oct 19, 2010 4:54 pm

Re: enable edit boxes depending on a Radio button

Hi,

I have replaced my radio buttons with a check box I want it to work as follows:

When checkbox is ticked the edit boxes can be edited when the checkbox is not ticked they cannot be edited.

How can I do this?

I have already created the 'updateMsiEditControls' custom action.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: enable edit boxes depending on a Radio button

Hello,
When checkbox is ticked the edit boxes can be edited when the checkbox is not ticked they cannot be edited. How can I do this?
I attached a sample project that demonstrates this functionality in "NewDialog" from the Dialogs page:
EnableDisableEditBoxSample.aip
(13 KiB) Downloaded 338 times
The required settings are included in the control conditions tab of the edit box.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Matt
Posts: 109
Joined: Tue Oct 19, 2010 4:54 pm

Re: enable edit boxes depending on a Radio button

Hi,

Thanks for the help I have got this working now

Matt

Return to “Common Problems”