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.

Layout interfering with OnObjectExit Script?

Featured Replies

Am a bit lost on what (I think) should be a quite simple script:

Field 1 has a value list on layout.

Field 2 is a general text field for typed data entry..

My goal is to use Field 1 to trigger/manage a script which does severla things, but then leaves the mouse/selector inserted into Field 2, for ease of use...

 

So...

When I select an item in that value list, an OnObjectExit triggered script: 

  • sets a variable from that, then clears that field
  • inserts a calculated value (based on the variable created) in another field. 
  • Then it SHOULD "go to Field 2"... as in, after the script is done, the cursor should be inserted into Field 2 with a blinking cursor...

My problem is, this isn't working.

the first two parts are working flawlessly - it creates and acts on variables, as it should..
But it refuses to 'go to field' (or "go to object", if i try it that way)..

What's happening instead is this: the script runs, but the selector/mouse jumps on forward to the next object (if that object is in a tab order), or (if NOT in a tab order), it goes nowhere (it operates the script, but dies before setting mouse to the field or object).....

I also tried OnObjectModify and OnObjectSave.... No dice on either.....The mouse simply refuses to "go to field"....

additionally, i tried triggering ANOTHER script (which works on its own) - - simply "go to field 2".. but even that doesn't work..

thoughts?

 

My guess is that the script (as an OnObjectExit trigger) runs, then FMP assumes that after the script ends, the next object should be selected (rather than ending wherever I told it to end)...
 

anybody?

Edited by wedgeman

Try putting Exit Script[ 0 ] as the last step in your triggered script.

  • Author
On 12/20/2017 at 7:51 PM, Fitch said:

Try putting Exit Script[ 0 ] as the last step in your triggered script.

thanks!  that helped.

Actually, i found out that "commit record" is triggering it for whatever reason.  Don't know why.. if I "commit" it won't allow me to then 'go to object xx".... go figure...   but it works now... thanks!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.