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.

OnObjectKeystroke Help

Featured Replies

I have a question about the new FM10 feature. I've enclosed a sample script. I have the OnObjectKeystroke on each of the enclosed fields. I would like the user to be able to push a single keystroke of T or F, and then move to the next field. I have it triggering a script that simply has a step go to next field.

I do not understand why this gets caught in an endless loop after just pushing one key. This is not how I understand it to work via the help menu. Any ideas?

Script_Trigger.fp7.zip

It appears to work much better on the "OnModify" state.

The keystroke handling appears to restart (or is triggered by) the "Goto Next Field".

Also, script triggers should return "True" to allow the action, see my changes to your file.

Script_Trigger.fp7.zip

There are some problems with that approach, such as allowing invalid characters or multiple characters in the field. The attached mods allow only T or F and only move for tab, enter, return.

Also, see an excellent writeup on keystroke and triggering here:

http://sixfriedrice.com/wp/script-triggers-using-the-keystroke-trigger/

script_trigger.zip

Edited by Guest

  • Author

Thank you both for your responses. I learned something from each, and Bruce's rendition appears to be the one I'll end up using.

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.