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

Cursor Jumping from End of Text Box to Beginning after Script End


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

Recommended Posts

Posted

Hi Lauren,

unfortunately the video does not load here... 

Can you add some more information about the script that does this?

 

demski

Posted

Have you tried

 

Exit Script ["False"] (see FM documentation)

 

As far as I understand the "False" exit clause effectively cancels the script trigger, however all the previous actions will remain in place.

 

Are there some field tabbing orders upsetting things?

 

Your original starting point with a pure Exit Script is no different to it not being there as the script runs to completion anyway.

 

Equally, try in v12 as a test.

Posted

OK, Here are a couple screenshots. In one, I have just performed the Go to Field Script step. The cursor is in the right place (at the end), the other is right after the script end (no other script steps have evaluated, no other script triggers, nothing) and the cursor has "jumped" to the front. It jumps when the script exit.s

The behavior is the same:

 > with script debugger open or closed.

 > with or without an Exit Script step on the end.

 > if I check "Select/perform" on the Go to Field script step.

 > when I check "Select entire contents on entry" in the field definitions.

 > when I try and use "Set Selection" to override where the cursor "belongs".

 > when I reduce the script to ONLY that one Go to Field script step

 

'>

'>

Posted

OK, I've figured it out. Its the up arrow. When I changed the script to work on pressing the 'a' key, it simply went to the field AND THEN typed an a in the field at the end. hmmm..... ok. Any way to get FileMaker to "ignore" the actual button pressed's behavior? Does that even make sense.

Posted

Any way to get FileMaker to "ignore" the actual button pressed's behavior?

 

Yes, there is:

 

Have you tried

 

Exit Script ["False"] (see FM documentation)

 

 

---

P.S. Please try and make your questions self-contained: that is, attach your screenshots here, not elsewhere. Also, when showing a script, it's much better to post it as text than a picture.

Posted

I tried to figure out how to attach a picture and couldn't. IdealData must have responded as I was typing my next two replies.

 

Thanks so much for the help! That worked. Of course, I knew that exiting false would stop the cursor from going to front. Wasn't thinking it through.

 

Cheers.

Posted (edited)

How to attach a file? Just follow these steps

 

BTW, you don’t have to zip a png file, you just add it like you would a zipped file. The resulting png file will show without having to go to a link.

 

Lee

Edited by Lee Smith
added the info on png files

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