Borgas
Posts: 60
Joined: Tue Jan 22, 2008 10:49 pm

Unable to set CheckBox Selected=False

Hi!

I have a checkbox that i like to set Control Conditions. So if Condition is xyz then i like it to set property Selected = False.
The only option that i find is
Default
Enable
Disable
Show
Hide

I have tryed to set controlevent "Set Installer propery value" with argument 0 for the Checkbox. But with no success.
Catalin
Posts: 7036
Joined: Wed Jun 13, 2018 7:49 am

Re: Unable to set CheckBox Selected=False

Hello Boris,

Please note that beside setting the property as you have done (which is correct), we also need to refresh the current dialog (this is another event that we can add that will refresh the current dialog so that the Checkbox state will be updated). Refreshing the dialog should only be done if the condition is met when the dialog is already spawned (e.g. customer clicks on a button --> xyz condition is met --> we want to uncheck a checkbox)

Also, please note that the value of the property isn't "0" when it is not selected. It should be set to empty string.
Screenshot_206.png
Screenshot_206.png (6.48 KiB) Viewed 2026 times

The above screenshot showcases an example on how the "Set property" event should look like.

Once again, if the condition is done on the current dialog, besides that, we should also add a "Refresh the current dialog" event. However, if done prior to the dialog being spawned, there's no need for that and we can simply add the event as an "Init Event" as showcased in my screenshot.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Borgas
Posts: 60
Joined: Tue Jan 22, 2008 10:49 pm

Re: Unable to set CheckBox Selected=False

Thanks!

What is the argument for Selected vs UnSelected?
UnSelected = []
Selected = ????
Catalin
Posts: 7036
Joined: Wed Jun 13, 2018 7:49 am

Re: Unable to set CheckBox Selected=False

You are always welcome, Boris!

Selected would be the value of the property, e.g.:
Screenshot_207.png
Screenshot_207.png (12.67 KiB) Viewed 1974 times
Please note that this value can be changed by yourself to anything you want, it can even be something like "checked" for ease of reading.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”