This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Enable Edit field upon radio button being selected
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 22, 2010
12:12 AM
Enable Edit field upon radio button being selected
Hi All,
Yes i have read the related thread to this topic. But was not able to find anything for my situation. I want to enable the edit field when a radio button ('Yes') in the radioButtongroup has been selected or disable it when the other radio button ('No') is selected. This is not similar to 'License agreement' dialog, rather similar to SQLDialog. When 'Server authentication..." is chosen the text area and edit field are enabled.
I am using Basic MSI, IS2009.
Appreciate all the help. 😄
Yes i have read the related thread to this topic. But was not able to find anything for my situation. I want to enable the edit field when a radio button ('Yes') in the radioButtongroup has been selected or disable it when the other radio button ('No') is selected. This is not similar to 'License agreement' dialog, rather similar to SQLDialog. When 'Server authentication..." is chosen the text area and edit field are enabled.
I am using Basic MSI, IS2009.
Appreciate all the help. 😄
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 22, 2010
10:36 AM
I think there is a similarity to the LicenseAgreement dialog. Look for the Conditions on the Next button in that dialog, and apply similar ones to your edit controls. You can condition on the underlying property of your radio button group, and Enable or Disable your edit control accordingly.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 22, 2010
06:52 PM
LicenseAgreement
Next PushButton
Event-------------Argument--------------------Condition
NewDialog---------DestinationFolder----------- AgreeToLicense= 'Yes'
MyDialog
Edit2 Edit
Event-------------Argument-------------- Condition
What is HERE------And what is HERE?------myPropForRadioButtonGroup='Yes'
unlike 'Next' button i do not want to go to a new dialog (event). The edit field should now be enabled and let the user type in the text. What event and argument (from the drop down menu) am i supposed to have attached to this condition?
thanks.
Next PushButton
Event-------------Argument--------------------Condition
NewDialog---------DestinationFolder----------- AgreeToLicense= 'Yes'
MyDialog
Edit2 Edit
Event-------------Argument-------------- Condition
What is HERE------And what is HERE?------myPropForRadioButtonGroup='Yes'
unlike 'Next' button i do not want to go to a new dialog (event). The edit field should now be enabled and let the user type in the text. What event and argument (from the drop down menu) am i supposed to have attached to this condition?
thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 23, 2010
01:30 PM
It sounds like you're looking at the control's Events. What you want is its Conditions. Try changing the tab in the lower-right of the screen.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 29, 2010
02:00 AM
Thanks Michael, that did work.
One glitch though...
If I name the radioButon group with property in small caps, the conditional behaviour is exactly what i want from the edit field. But small caps are not recognized when i use it in MsiGetProperty to output the value to a file.
MsiGetProperty seems to work only for properties with capital letters.
How should i resolve this?
thanks
One glitch though...
If I name the radioButon group with property in small caps, the conditional behaviour is exactly what i want from the edit field. But small caps are not recognized when i use it in MsiGetProperty to output the value to a file.
MsiGetProperty seems to work only for properties with capital letters.
How should i resolve this?
thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 29, 2010
11:37 AM
That depends. Since you're outputting it to a file, it sounds like this action should be part of the InstallExecuteSequence. For property values to get passed from the InstallUISequence to the InstallExecuteSequence, they must be public (no lowercase letters in their name) and should be listed in the SecureCustomProperties property. This is a requirement of Windows Installer so if this describes your scenario, you can't name it with mixed or lower case letters.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 30, 2010
01:52 AM
so combination/small letters work for getting the behaviour out of edit field, and will not work with capital letters (that's my dilemma :confused: ).
While capital letters work for property value output (and that's how i have all my properties) and will not work with combination/small letters.
Is there any way of having both the edit field work and also to be able to output to a file?
While capital letters work for property value output (and that's how i have all my properties) and will not work with combination/small letters.
Is there any way of having both the edit field work and also to be able to output to a file?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 30, 2010
11:46 AM
I've never seen behavior like what you describe, but you can bridge the gap with a set-property custom action, or even a Control Event on the Next button (back to the Events tab) that sets the PUBLIC_PROPERTY from the MixedCaseProperty. As an event, the row would look something like this.[CODE][PUBLIC_PROPERTY] | [MixedCaseProperty] | 1[/CODE]
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)