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.

Featured Replies

There's a topic from a couple of years ago on this very subject ... but it was never really resolved.

http://fmforums.com/...cript-on-enter/

In my specific case, I have a layout with a single field on it. The field is set with "Go to next object using Tab/Return/Enter". I want the script to trigger with the user types a word and presses Enter. It's the simplest case of all.

The OP reported he got it to work ... any idea how? Processing individual keystrokes introduces a slight field flicker on the layout, so I want to avoid that.

Thanks for any assistance.

  • Author

Further testing has revealed something rather quirky, in my opinion. On Object Validate will, indeed, cause my script to execute ... and the script performs properly, which means shifting to another tab on the layout in order to await further entry. But after the script executes, FMP shifts focus back to the original tab and back to the entry field.

No combination of Go To Field[ ] statements in the script seems to work to take focus away. FMP always insists on going back to the field ... with the cursor still blinking in the field, as if nothing had ever happened.

I'm perplexed.

See if this helps:

http://fmforums.com/forum/topic/81779-tab-order-gotofield-misunderstanding/page__view__findpost__p__379359

  • Author

Since the script has already moved the cursor to another field, and the OP does not want the 'original event' to proceed, they should end the script with Exit Script [ False ].

Simply amazing. It's nothing I would have ever thought to try.

Thank you very much.

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.