Programmatically change a "Radio Set" selection

Hi there!

I hope everyone is doing well.

I am making a Configurator, and I am using a simple “Radio Set” GUI widget.

My Radio Set has 13 selections within it (lets say 1,2,3,4,5,6,7,8,9,10,11,12,13)

Based on a specific logic rule, I need to make element “1” not selectable.

if(System.Convert.ToDecimal(Inputs.epiPcTextBox8.Value) <= 5)
{
Inputs.epiPcRadioSet3.ValidList=“2~3~4~5~6~8~9~10~11~12~13~14”;

   Inputs.epiPcTextEditor1.Value+="Feature 2: Selection 1 removed due to input value <= 5\n";

}
else
{
Inputs.epiPcRadioSet3.ValidList=“1~2~3~4~5~6~8~9~10~11~12~13~14”;
}

The above does work, but I would like to have the “1” grayed out etc, or worst case, not showing.
When they select the “1”, I get a message “Important Message” “Not in Valid List”.

Any suggestions would be greatly appreciated.

~Kam

This is the typical use case for a dynamic dropdown. Like a group of radio buttons, only one entry in the dropdown can be selected (or no entry selected). The only difference is that you can’t see all the options until you click the dropdown to expand the list of possible selections.

The dynamic list works by building the dropdown’s list based on some condition.