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

I have a dropdown that I'd like to be able to change with the arrow keys, then you press enter, it commits the value, and runs the script. Instead, when I press enter, it uses whatever the value was before I chose a new one in the dropdown, and runs the script. The script adds a line item at the end of an invoice portal, currently with the wrong value (unless I click, but I'm trying to get around using the mouse).

I'm sure there's something simple I'm missing here? The following script runs on keystroke:


if(get(triggerkeystroke)="paragraph (symbol)")

Commit records/Requests [No dialog]

Perform Script ["allocate]

Exit Script [result: False]

So, to summarize, I want "enter" or "return" to commit the field and run the script.

See if this article helps you.

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

I have a dropdown that I'd like to be able to change with the arrow keys, then you press enter, it commits the value, and runs the script. Instead, when I press enter, it uses whatever the value was before I chose a new one in the dropdown, and runs the script. The script adds a line item at the end of an invoice portal, currently with the wrong value (unless I click, but I'm trying to get around using the mouse).

I'm sure there's something simple I'm missing here? The following script runs on keystroke:


if(get(triggerkeystroke)="paragraph (symbol)")

Commit records/Requests [No dialog]

Perform Script ["allocate]

Exit Script [result: False]

So, to summarize, I want "enter" or "return" to commit the field and run the script.

The script is exiting with "false" which tells FMP to reverse the change. Try it with "true".

  • Author

Thanks for your replies,

The article is useful, but it's a different application of keystrokes. I think I used exit script [result:false] incorrectly, but that's as much as I can glean.

I tried the exit script [result: true], and it's the same issue, that it doesn't commit the change. I think the problem is that the allocate script goes to a different layout, at which point the selected text in the dropdown is cleared, so by the time exit script [result:false] runs, the field is already cleared.

I could have the allocate script run in a new window, which might fix that, but I'd prefer not to alter that script, since it's long, complicated, and not something I created.

Any further thoughts?

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.