1 of 1 people found this helpful
OnPanelSwitch is probably the right trigger and with Get(TriggerTargetPanel) & Get(TriggerCurrentPanel) you can set global fields or global variables to evaluate in the hide object when calculation..
GetLayoutObjectAttribute ( "SC_1" ; "isFrontPanel" ) should return true when the panel with object name SC_1 is the front most panel
You may want to trigger an object refresh of the hidden field with the panel.
Use on object modify to get the panel that is going to be shown. Use on panel switch to get the last panel. I figure you would want the first option.
I got it to work with the following:
GetValue(Get(TriggerTargetPanel);1) = 1
I added a global to set it to 0 or 1 and use that to hide the fields. thank you.
Yet GetLayoutObjectAttribute should also work here as well. There are times when it is the better option in these situations.