Jump to content

Prevent carriage return from Enter key trigger


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

Recommended Posts

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

Link to comment
Share on other sites

This topic is 2458 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.