April 23, 201510 yr I have an "OnObjectKeystroke" script trigger that is executing a script when the user types a (Tab, Return or Enter). At the end of the script it returns the user to the field. The problem that I am running into is the (Tab, Return, or Enter) is being entered into the field. How can I strip away those characters from the end of the string that the user is entering? Here is my current script: Set Variable [$f; Value:Get(ActiveLayoutObjectName)] If [Let( [ n = Code( Get ( TriggerKeystroke ) ) ]; ( n=9 or n=10 or n= 13 ) )] Commit Records/Requests [] Go to Object [Object Name: $f] End If
Create an account or sign in to comment