Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OnLayoutExit causing problems with going to a related record

Featured Replies

Hello! Thank you for this very helpful community

I am using the OnLayoutExit trigger on one of my databases. 

On the same layout I'm using a go to related record script that goes to another layout.

 

1. With OnLayoutExit ON the Go to related record button doesn't work properly

2. With OnLayoutExit OFF the Go to related record button works properly

 

I searched around and I didn't find a solution for this.

 

What do you recommend?

 

Getting rid of the OnLayoutExit script reduces efficiency in my database, I want to avoid having to turn it off.

 

Do I have to create a specific script for each GTRR button and suppress the triggered script?

Hi,

 

Just add the a global variable to your script, for example:

 

Avoid that something happens when you leave the layout after click of a button:

Set Variable [$$noTRIGGER]=1

...your script...

Set Variable [$$noTRIGGER]="" // reset

 

In your OnLayoutExit script add on top

If [$$noTRIGGER = 1]

exit script

End If

..your script

 

If you just want to use the button with GTTRR without extra script you are also able to set the $$noTRIGGER via elegantly:

Use the window name field:

Let ( $noTRIGGER = 1 ; "" ),

but you'd need some point to reset $noTRIGGER - maybe on layout (re-)entry.

 

Hope this will help

 

Best,

Alexander

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.