how to reset a radio button group? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

paul@jobpow.com
Posts: 33
Joined: Thu Oct 01, 2009 8:29 pm

how to reset a radio button group?

when i enter a dialog, two radio buttons are unselected. i make a selection and go to the next screen. when i click "back" to get load the dialog with the radio buttons, the previous selection is still there. how do i reset these to both be unselected again?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: how to reset a radio button group?

Hi Paul,

Note that when a radio button from within a group is selected, this means the group's property has the same value as the selected radio button. To unselect the radio, simply set the group's property to some other value.

In your particular case, you can try using a SetProperty Published Event on the "back" button of your second dialog (the one after the radio button group) to set the group's property to some random value.

Let me know if there is anything else you need help with.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
paul@jobpow.com
Posts: 33
Joined: Thu Oct 01, 2009 8:29 pm

Re: how to reset a radio button group?

that got it, thanks!
paul@jobpow.com
Posts: 33
Joined: Thu Oct 01, 2009 8:29 pm

Re: how to reset a radio button group?

btw, trying to put this property set on an init event of that dialog causes an error during MSI build.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: how to reset a radio button group?

Hi,

Init events are a feature in Advanced Installer. The events are basically set for the "Next" button of the previous dialog. If multiple dialogs point to a dialog with init events, Advanced Installer doesn't know which of them will actually use the events. If this is the case for your dialog (multiple dialogs point to it), try removing the init events. Instead, you can try setting the property on the "Next" buttons of those dialogs.

If this is not the case, please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
paul@jobpow.com
Posts: 33
Joined: Thu Oct 01, 2009 8:29 pm

Re: how to reset a radio button group?

that explains my init event, thanks! i do have a multiple-branch logic that leads to this particular dialog; i will keep the setting on the relavant "back" buttons instead. and thanks for the quick answers!

Return to “Common Problems”