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.

Setting a Repetition

Featured Replies

OK, I'm in Dev 7.0v3 (8 upgrade coming).

Been doing FMP since 1.0. But I've never really used repeating fields.

I need to find how to set a particular repetition in a repeating field.

Help!

Jim

In FM8, you can set a repetition by a calculation. In prior versions, use conditions in the script to decide which repetition to set:

If [ field1 = 1 ]

Set Field [ field2[1] ; "somevalue" ]

Else If [ field1 = 2 ]

Set Field [ field2[2] ; "somevalue" ]

...

Hi,

There are several methods to set a specific repetition, even with 7 or earlier versions.

One could be to set the repeating field to be a lookup field and invoke a trigger calculation to fill the rep.

Another would be a loop with a global and the use of Get(CurrentRepetitionNumber) as a way to stop the loop when you reached the correct iteration.

The "challenge" for method 2 is to set the tab order for the repeating field and I would suggest you move to a specific layout with just this repeating field for such a job.

There are a few files attached here on the forums either .fp5 or .fp7 that you may find if doing a search for "repeating field"

Edited by Guest

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.