Jump to content
Server Maintenance This Week. ×

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


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

Recommended Posts

I made a video to explain the behavior. Basically, throughout the script the cursor is in the right place (the end) and then... it just jumps to the beginning as soon as the script exits.

Really bothersome as it will cause my users to seriously "bonk"

 

http://www.screencast.com/t/CUISnwQwVRjq

 

FileMaker Pro 13 Advanced, OSX Mavericks

 

Thanks!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 

'>

'>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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