検索 - User list
Full Version: Multiple Toggles (only one toggle should be ON)
Root » Technical Discussion » Multiple Toggles (only one toggle should be ON)
olivierth
Hi!

I have multiple toggles and I'd like only one toggle to be active at a time. If I click on C it should uncheck A and B.

Is it done with multiple chi() (like my image) or a single one with an other "Type"?

-Olivier
tamte
while you could implement turning on/off of others using callback scripts if you really want to stick to toggles
but I'd certainly recommend using Button Strip instead
olivierth
Super! I'll test that out, thanks!

-Olivier
olivierth
...Arg! I tried to replicate your Button Strip example in another Wrangle but I just can't get it to work. I tried to replicate all settings but my buttons don't show up. The only difference I found is the "Use Menu" (under the Menu tab).

I'm I missing something?

-Olivier
tamte
olivierth
I tried to replicate all settings but my buttons don't show up. The only difference I found is the "Use Menu" (under the Menu tab).
yes, that's one gotcha of Button Strip, it has to have the menu enabled and then the buttons in Button Strip are the entries in the menu
and the menu type defines whether you can select only a single option (Replace) or allowed to select multiple ( Toggle )

since menu is compulsory the menu checkbox is grayed out, but there seems to be a bug that the parameter still cares whether the checkbox is enabled or not

if you create Button Strip parm directly then the menu will be enabled
however if you created parameter of any other type and then changed it to Button Strip (which is likely what happened) then the menu is likely unchecked

so just change it to Int, enable Menu and change back to Button Strip
or create Button Strip to begin with
olivierth
I'm glad there's a forum for things like this. There's no way I would've found that in the help documentations!

Thanks again, tamte!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB