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.

Problem with "Go To Next Record" script

Featured Replies

Hi all,

This would sound like it is fairly simple, but I have spent many hours trying to figure it out.

I have a DB and created a view for a tablet.

I have one field on the view the user has to input a price in. I have set a script trigger that says "OnObjectExit" run a script.

The script is simple...it says Go to the next record.

When I trigger the script it goes to the very last record in the SORT and stops, it does not go to the next record. HOWEVER, I can put a button on the view and attach the Go To The Next Record command on it and it works perfect. I can attach the above script to the button and it works fine.

Any ideas????

Thanks...MG

Are you happening to select another row when trying to exit out of the current record? Also do you happen to have focus on the field when it goes to the next record? Try troubleshooting it with Advanced.

  • Author

Are you happening to select another row when trying to exit out of the current record? Also do you happen to have focus on the field when it goes to the next record? Try troubleshooting it with Advanced.

Hey John,

There is only one field on the view that is selectable. I enter an amount and then have the OnExit function run a script that says goes to the next record. The button works fine. When I attach the script to a button, it works fine. When I attach it to the OnExit function, it' jumps to the last record.

MG

Well lets think about what you have going on here. You exit the field and the trigger goes to the next record. Well if your focus is still in that field, when it leaves that field for the next record, it will go to the 3rd record, and on... and on...

What is the purpose of going to the next record from that particular field? Perhaps it would make more sense to use a onObjectModify, onObjectValidate, or onObjectSave depending on what you are trying to achieve which I still dont know.

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.