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.

HELP with: #Error 20 - Script interrupted

Featured Replies

Hi, once again!

My issue today is about the #20 error code and how to get over it. Here's the case:

Currently I have a layout with OnLayoutKeystroke enabled for arrow navigation, which is called by a script that makes it modal (Let's call it MAIN). - (Looping until an OK or CANCEL script result is returned)

The script running for navigation (called by the OnLayoutKeystroke trigger) also has a definition for when ENTER/Return is pressed, to select the current record and capture some variables. It is scheduled to then exit with an OK result, and should make the MAIN script exit the Loop (By an ExitLoopIf(get(scriptresult)="ok" or get(scriptresult))).

But unfortunately it returns an error code #20: "Command/operation canceled by triggered script"

Can someone explain why is this and what should be done to avoid it (otherwise the ExitLoopIf doesn't work)?

Suspicion: Does this have to do with the fact that the triggered script results to OK and not 0 or 1?

Please attach a copy of your file, or a make a mockup of it and attach that, so we can see what it is that you are trying to do.

Lee

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.