Skip 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.

Trapping for Tab / Return / Enter via OnObjectSave

Featured Replies

I have an invoice layout with a couple of fields, Item_Search and Quantity. Most of the time a barcode scanner is used and quantity defaults to 1. Sometimes I'd like to be able to type in an Item ID, tab over to the Quantity field, enter my new quantity (say "5") and hit Return or Enter, THEN trigger my script that adds the item to the invoice.

I've toyed around with the OnObjectKeystroke script trigger, but it's too slow. Running a script after each individual keystroke, even if it exits immediately, is too much of a slowdown. After scanning a barcode, I can watch the characters slowly appear in the field (whereas before, they are entered almost instantaneously).

Is there a way to detect if the Tab key was used when triggering a script using OnObjectSave? Something like Get(LastKeystroke) would be handy.

Thanks,

I and many others use OnObjectKeystroke in this way. I am using this over a LAN with no observable delay whatsoever. Is your script doing anything other than testing for the keystroke?

An after thought. I use a simple script with an if statement to check the keystroke. If the keystroke is "Enter" then this small script calls another script. If not it does nothing. Perhaps if you are testing at the beginning of a large script that may be where the delay is. Just a thought.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.