Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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!

Hi Lauren,

unfortunately the video does not load here... 

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

 

demski

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.

  • Author

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

 

'>

'>

  • Author

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.

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.

  • Author

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.

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

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.