mcseforsale
Posts: 57
Joined: Wed Mar 27, 2013 10:53 pm

Can you control the visibility of a single radio button in a group?

Fri Aug 26, 2022 8:32 pm

I have a radio button group with 3 choices. Based on a search, I'd like to be able to grey out one of the choices based on a search property value. It appears that you cannot do this.

We are using 19.1 and would prefer not to upgrade Advanced Installer as this is a legacy product and we need to keep the experience exactly the same.

Thanks!
Andy

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Can you control the visibility of a single radio button in a group?

Mon Aug 29, 2022 9:48 am

Hello Andy,

As you have mentioned, I'm afraid it is not possible to achieve that through a RadioButton Group control.

What you try, however, is this:

- instead of RadioButton Group control, use CheckBox controls

- implement the RadioButton logic for the CheckBoxes. The logic would be as it follows:

1. if one checkbox is checked, the others should be disabled

2. the other way around, as well

3. if one checkbox is unchecked, then re-enable the others

Please note, however, that this logic becomes a little bit problematic if we have more than 2 or 3 checkboxes.

Use the Control Events tab to hide the CheckBoxcontrol based on your search.

Hope this helps!

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

Return to “Building Installers”