Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7359 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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"]

Posted

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

Posted

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)?

Posted

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.

This topic is 7359 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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