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.

Script for Repeating Fields

Featured Replies

Is it possible to create a script to populate all repitions of a repeating field? I am creating a bid sheet for an auction and need to create bid value increments based on a Value field. Example 30 is value. Rep 1=30, Rep 2=(Rep1+10), Rep 3 = (Rep2+10), etc.

Thanks

Novine in NC

Version: v6.x

Platform: Mac OS X Panther

Define fields called BidValueBase and BidIncrement so you have more flexibility.

First script step: Set Field [""BidValueBase", "BidAmount"]

For each repeat n, where n > 1, define a script step:

Set Field ["BidValueBase"-n, "GetRepetition(BidValueBase, n-1) + BidIncrement"]

When you define Specify the field for Set Field, change the Repetition: box at the bottom appropriately.

Is this what you wanted?

There is a way to do this using calculations. Keep the two fields BidValueBase and BidIncrement. Define a new global number field named g.Index with the 3 of reps you'll need. Enter integer values in this field from 0 to (# repetitions -1).

Create a number calculation field named BidValue with the same # of repetitions. The calculation is:

Extend(BidValueBase) + (g.Index * Extend(BidIncrement))

Now BidValue will automatically start at BidValueBase and increment with BidIncrement

Is this understandable?

"with the 3 of reps" should be "with the # of reps"

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.