Hi I rarely come across this problem.
Lets say you have a field with an “On Data Change” object method which does field level validation that rejects an entry. Lets says the form has a default button and the user clicked the “Big Enter” key (on the numeric keypad) which invokes a ‘save’ action. Here’s the problem: • the field level validation rejects the entry and restores the ‘in range’ value that was already there • but after executing the script 4D still ploughs on and tried to save the record • the form level validations don’t trap the error condition because it was ‘put right’ at the field level, so 4D saves the form How can the ‘save form’ keystroke be arrested if the field level validation fails ? It appears that FILTER KEYSTROKE(“”) only works if you place it in the “On Before keystroke” event. It doesn’t work retrospectively after the “On Data Change” script has validated at field level. Peter ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************