I'm trying to Hide a Checkbox Set based on the status of a global variable. It sort of works but not entirley. I thought the easiest way to show you what I'm (not) doing is through pictures. I use a toggle button bar (FileMakerThemes) and have an associated global variable ($$ONExternalFactors) which I'm using in the "Hide object when" field. The calculations there is defined as "$$ONExternalFactors" and "not $$ONExternalFactors", respectively.
I also have a script triggered when selecting the toggle button:
This works fine as long as I only use the toggle button:
However, if I select/deselect any of the checkboxes like:
Somehow the checkbox does not respond to the toggle button if I switch External Factors OFF:
I made to show/hide trick using a doubled set of text boxes, backgorund boxes and checkboxes, which can be seen if I separate them:
Two of these three components react to the toggle button, but not the checkbox:
The strange (for me at least) thing is that if I cklick anywhere outside of the checkbox, it disappeares. It seem to be losing fucus somehow. When I then continue to toggle the button, the checkbox set works again as expected. But only until I touch any of the checkboxes.
Any clues? anything I can use to force the checkbox to read the global variable?
I have tried all sorts of "OnObject*" things and everything else I could think of. No joy...
Thanks all and Cheers!
Niko Marsic (needless to say Beginner)