Go to Related Record script overruled by On Layout Enter Script
I created multiple Go to Related Record scripts and attached them to buttons on a layout so that you may click the button and be taken to that same record on a different pre-defined layout.
However, the pre-defined layouts have "On Layout Enter" sort scripts on them as well.
If I take away the On Layout Enter script, the button script works fine; I am takin to the layout I wish and I see the related record.
With the On Layout Enter script active, the button script takes me to the layout i wish, but loads the layout enter sorting script rather than the related record I want to see.
Is there a way to bypass the On Layout Enter script so that it does not run if the layout is accessed through my button rather than the Layout navigation toolbar?
Thanks for any help