AnsweredAssumed Answered

Conditionally Disable OnLayoutEnter Script

Question asked by laguna92651 on Nov 3, 2016
Latest reply on Nov 4, 2016 by laguna92651

I have a button on records in list view, that opens a new window for that record. The script that opens the new window is sluggish. This script only consists of:


Set Field

New Window

Go To Layout



When I run the script debugger and run the call "new window script", I noticed that a find script that I use on the OnLayoutEnter trigger runs, on the base layout, is causing the delay and flicker. I wouldn't think this should run, but if it should run, is there a way to only run the OnLayoutEnter find script when I actually enter the base layout, not run the OnLayoutEnter script when I click the new window button?