Is possible to do a group of separate buttons act as a swtich?

For example, I have 7 buttons, and if I activate one, the rest are off.
The current switch system is too limited in terms of layout , as these 7 buttons could be in different areas of the interface.

1 Like

Using a script widget and the linkId property it is possible, here’s an example you could adapt to your needs.
switch_script.json (4.6 KB)

1 Like

Should this also work in V1?? or has the script widget changed?

The script widget has changed a bit: you need to remove the JS{{ }}around the code in its script property.

Thanks, makes sense.:slight_smile:

Could you possibly explain how this script works? Particularly, I'm trying to modify it to a page that has 16 buttons where the buttons have ID's like this: @{parent.id}1, @{parent.id}2, @{parent.id}3, etc. Thank you.