July 28, 20178 yr Hi all I have a global field that is populated by the end user. When they hit the enter button it executes a script, which refers to the value that has been entered in to that field. This utilises the Get(TriggerKeystroke) and OnObjectKeystroke trigger and function. When a keystroke is made on the field, the triggered script detects when the enter key has been pressed and runs another script. I have set the field to go to next object when enter has been pressed. The only downside of this method is that it tabs to the next object after the enter key is pressed. The only way to prevent this is to untick the 'go to next object using enter option. However when I do this, I am left with a carriage return at the end of the field contents, because the enter key has been pressed. Is there a way around this? Cheers
July 28, 20178 yr If you don't want the triggering keystroke to be executed, then exit the script with a false result:http://www.filemaker.com/help/16/fmp/en/index.html#page/FMP_Help/onobjectkeystroke.html
Create an account or sign in to comment