Simple Grid - Single Selection

Hi, I have created a simple grid with 50 toggles. I would like to only have one button selected at a time. Is there away to do this. Attached is a picture of the router control I am working on. You can see that multiple source can be selected at once and I do not want that. New to this coding thing. Just trying to learn one process at a time.

Your best approach is to use a parameter with a choice constraint and a radio toggle widget hint. You can attach a task to the parameter to react when a new value is selected.
In my example, I have included an additional script that runs when the panel loads to clear any existing selection.

params.setValue('params.toggle', 0, -1); Button 1 Button 2 ... if (this.getValue() < 0) { //NO SELECTION return; }

if (this.getValue() == 0)
{
ogscript.debug(“BUTTON TASK 1”);
}
else if (this.getValue() == 1)
{
ogscript.debug(“BUTTON TASK 2”);
}
else
{
ogscript.debug("BUTTON " + (this.getValue() + 1));
}

[#DashBoard](https://livinglive.community/search?s=tags%3A%22DashBoard%22&executesearch=true)