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.

Windows: Using Escape to Cancel

Featured Replies

In Windows the Escape key is giving me some grief. I would like in a number of situations to use the default button in a dialog box for "OK" or "Continue" but a user hitting the Escape key expects to get the "Cancel" option. I have therefore always coded the "OK" option to button 2, meaning the user always has to click the button rather than being able to hit Enter.

Now that Filemaker 7 allows field input within a custom dialog box, the data is only entered via the default button, ie so if the user enters data in the field input, then has a change of mind and hits Escape, the data is entered into the field anyway.

Please confirm I've got this right. Are there any workarounds to make this a bit more user friendly? Appreciate any help.

Philip

  • Author

brownees wrote "In Windows the Escape key is giving me some grief. I would like in a number of situations to use the default button in a dialog box for "OK" or "Continue" but a user hitting the Escape key expects to get the "Cancel" option. I have therefore always coded the "OK" option to button 2, meaning the user always has to click the button rather than being able to hit Enter.

Now that Filemaker 7 allows field input within a custom dialog box, the data is only entered via the default button, ie so if the user enters data in the field input, then has a change of mind and hits Escape, the data is entered into the field anyway.

Please confirm I've got this right. Are there any workarounds to make this a bit more user friendly? Appreciate any help"

Has nobody come across this issue?? [color:"purple"]

yes.. u're right, when a custom dialog shows up with an input field, hitting escape will *replace* that field with what's entered in the custom dialog.

and if u happen to have blank... that field will be erased if it had something in it.. tongue.gif

p.s. platform: windows 2003 ent. server

dunno any workarounds yet... crazy.gif

FWIW, I never link custom dialogs to "real" fields, only to globals. The rest of the script after the custom dialog performs validation and processes the entry, then sets the new value into the record.

Can the Escape key or Cancel be trapped for with Get(LastMessageChoice) or Get(LastError)?

Now that Filemaker 7 allows field input within a custom dialog box, the data is only entered via the default button,...

vs. 6's Custom Dialog also accepted User input; and the button response was the same. Field input is only changed when one selects the default (1st) button no matter what you label it. I too only use globals because that is the only way to validate before field set is allowed.

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.