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.

Inserting into Repeating Fields

Featured Replies

I have a repeating field that has 17 repetitions. I want to enter numbers from 1 to 17 in those repetitions. Is there any easy way to do this without having to manually enter the numbers? I would like to write a script that would do this for 33 records. Any help would be appreciated.

Thanks,

John

Well,

you could do this by simply finding your records and entering a number into the repetition and choose records replace.

Repeat 17 times for each number.

Or you can script it. You will need a global field [number format] as well (called _gNumber).

Create a layout with just your repeating field on.

The your script

Freeze Window

Go to record/request/page [first]

Set Field ["_gNumber", "0"]

Go to field [your repeating field, repetition 1]

Loop

Set Field ["_gNumber", _gNumber +1]

Set Field ["_gNumber"]

## Note the set field above has no field specified, just the calculation]

Go To Next Field

If ["Status(CurrentRepetitionNumber) = 1"]

Go to record/request/page [Exit After Last, Next]

Set Field ["_gNumber","0"]

End If

End Loop

Make sure you find only those records you want to add the numbers to, otherwise you will change all records.

HTH

  • Author

Thanks for the script. I knew there had to be a way to do it. I will give it a try.

Thanks,

John

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.