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: Suite Project: How to set property on a checkbox for a custom dialog
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
‎Jan 02, 2014
06:05 AM
Suite Project: How to set property on a checkbox for a custom dialog
I have a custom wizard page that contains a checkbox. I can set a property using this checkbox properly. However, once the checkbox is selected, the user can no longer clear the checkbox because the property has been created.
So I tried to get creative and set another property for the checkbox click event that clears the property if the property Equal '-1' and I am doing a string comparison. I set the Name to the property name and then I leave the value empty. I expected this to delete the property.
The original setting is set to Name:, Convention: String, Comparison: NotEqual, Compare To: -1| Name: , Value: -1
However, this is not letting me select the checkbox at all. I suspect that it evaluates the first condition and then the next condition and both cancel each other out. I know there must be a correct way to code this so a user can toggle the checkbox and I still can correctly set a property based on the checkbox state.
Any ideas?
Thanks.
So I tried to get creative and set another property for the checkbox click event that clears the property if the property Equal '-1' and I am doing a string comparison. I set the Name to the property name and then I leave the value empty. I expected this to delete the property.
The original setting is set to Name:
However, this is not letting me select the checkbox at all. I suspect that it evaluates the first condition and then the next condition and both cancel each other out. I know there must be a correct way to code this so a user can toggle the checkbox and I still can correctly set a property based on the checkbox state.
Any ideas?
Thanks.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 02, 2014
08:25 AM
I think in your case, you'll want to avoid using click events to set the same property that the check box is associated with. All you really need to do is set the check box's property field to something like MyProperty==Value.
Take a look at the radio buttons on the built-in license agreement wizard page. Although these are radio buttons, the property association works the same as it does for check boxes.
Take a look at the radio buttons on the built-in license agreement wizard page. Although these are radio buttons, the property association works the same as it does for check boxes.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)