Skip 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.

Recognizing last record and existing to next layout

Featured Replies

Go to Record/Request/Page (first)
Loop
 #do something here with the current record
 Go to Record/Request/Page [Next; Exit after last]
End Loop

 

I found this code but cannot seem to figure out how to use it for my purposes. What I have is a quiz with about 20 questions. I have a button called "Next" to go to the next question. On the last page I want that button to exit the quiz and go to another layout. But if I put go to next layout, it is on every button. I hope this makes sense.

 

So the next button needs to go to the next record until the last record and then exit to another layout. How do I keep it from being global where it affects every button on the layout? Thank you.

Solved by Raybaudi

Go to solution
  • Solution
The script could look like:
 
If [ Get ( RecordNumber ) = Get ( FoundCount ) ]
Go To Layout [ "YourOtherLayout" ]
Else
Go To Record [ next ]
End If
  • Author

Excellent, worked perfectly. By the way I lived in Gaeta for 5 years in the early 80's. Loved it. Take care.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.