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.

Repeating field question

Featured Replies

Hi All,

A little question about a repeating field.

I have field A, B (normal text fields) and C a calculation field with a repeating field of 2.

In C I want to calculate that in C (1) (the 1st of the repeating fields) comes the txt value of A and in C (2) (the 2nd of the repeating C field) comes the content of B.

How do I get this to work (if possible at all)

Anyone?

Cheers

Koen

Case(gIteratore, extend(A), extend(:)

Result repated field with 2 reps, and gIteartor is global repated numeric field with values 1|0 (1 in first rep and 0 in second rep.

You'll find more complex example

in this thread

Dj

  • Author

djgogi,

Thanks for the quick reply.

But it's not really clear to me yet.

What i tried was :

A is a repeating text field of 2 - containing A and B

B

For all data types except containers the following will work:

text type: Set Field ["repeated field"-rep number,GetRepetition(repetedField,number]& ""]

numeric type: Set Field ["repeated field"-rep number,GetRepetition(repetedField,number]+ 0]

data type: Set Field ["repeated field"-rep number,GetRepetition(repetedField,number]& TextToDate("")]

time type: Set Field ["repeated field"-rep number,GetRepetition(repetedField,number]& TextToTime("")]

the above will be valid also inside calculations (and not only thru set field script step)

Since containers could not be manipulated (no ops on them) you need to use scripted workaroun to achieve the same thing

You'll need also and temp container global field:

Set Field [tempContainer, GetRepetition(containerReps,num]

Set Field ["repeated field"-rep number, tempContainer]

Dj

I've modified it to work.

Dj

test.fp5.zip

  • Author

Thanks Dj!

This is way cool.

Cheers

Koen

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.