2 Replies Latest reply on Mar 16, 2012 2:40 PM by smoothie

    Script trigger: OnLayoutLoad

    RodLayman

      Summary

      Script trigger: OnLayoutLoad

      Description of the issue

      From a report in Preview mode, I want to enter Browse mode automatically when I move to another layout. I have set up the second layout to run a script called "Browse" (Enter Browse Mode script step), triggered by that layout's script trigger OnLayoutLoad. It doesn't work. When I try this using the script debugger, the "Browse" is not called by the layout load event. What's wrong?

        • 1. Re: Script trigger: OnLayoutLoad
          davidhead
            

          When you set the OnLayoutLoad script trigger, not only can you select the script (which you have done), you can also specify which modes to enable the trigger.

           

          The default for the OnLayoutLoad is that the trigger is enabled for Browse mode only. This means that if you return to the layout when in Find or PReview mode, the script will not trigger.

           

          I suspect that you need to go back in and enable it for Find and Preview modes too. ;)

          • 2. Re: Script trigger: OnLayoutLoad
            smoothie

            BUG REPORT: When you set the OnLayoutLoad script trigger in FM11 Pro on Windows 7 64 bit and that is set on the form you are editing and you go to browse mode, the trigger doesn't fire.  If you switch to the form from another form, it does.  It should always fire!