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.

scroll button script

Featured Replies

Need help with script for button that scrolls though portal records.

The portal displays one record at a time and has an up and a down button. When the down button hits bottom, one more click brings you back to the first record. That was easy, it just recognizes the empty fields of the bottom record.

What I want is for the UP button to work the opposite way - that is, if the first record is in view, a click on the UP button brings you to the bottom record.

Thanks

  • Author

Got it. For those interested:

Since the portal records are sorted by creation timestamp, create a Summary field to find maximum creation timestamp. So the script says: if timestamp = max timestamp, go to last record, otherwise previous record. The buttons have to be in the portal to work.

Now, is there a simpler way?

Why not use the Get( PortalRow) function to work out what portal row is selected.

The Max function will become slow as the number of related records increases, sine it has to do quite a bit of maths to return its result.

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.