I want to make two boolean togggles reverse each other.
A) If toggle A is true, toggle B is false.If A is false, B is true.
B) If toggle B is true, toggle A is false.If B is false, A is true.
Currently, (A) works, but I have no idea how to make (B) work.
Can anybody help me with this issue?
Thanks.
You need to store the old A and B values to check which changed.
Also, you are not expiring the toggle components, so no other components will receive the change.
Note that expiring a component that is upstream of the c# itself will result in a sort of loop, throwing an error.
Like this seems stable (don’t know why) but I would totally expect further problems if you tweak it more.
Thanks for your replay, inno
The reason I would use Boolen Toggle is because I want to clearly recognize which option I am using from RCP panel.
Your idea looks very nice. Thank you!.
@DavidRutten at first i tought this might be related to Value List component, but it isn’t, not fully.
Still:
If we will see Value List component on GH2, an option for “Radio button List” would be useful.
All other “form” of Value Lists component let the user select a single item out of a pre-made list…
YES. It seems a radio button list is exactly the kind of functionality that @archist97 and I are looking for here—kind of surprising that this doesn’t exist as a simple component, either native in GH or from a third party.