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.

repeating fields in scripts

Featured Replies

Hi,

I am trying to create a script that sets a repeating field. I first need to clear the field (all repetitions). I know I can select go to field and pick the repetition manually, in which case I will need 25 set field script steps for all 25 repetitions. I know there must be a way to do a calculation that will take me to the next repetition. I am trying to figure out how to do it with the Get(ActiveRepetitionNumber) but I can't get my head around it. Can someone help?

Thanks

I had a similar problem several months ago and, sorry to say, ended up with having to use n set field steps to clear n repetitions of a repeating field.

Put your repeating field with all repetitions displayed on a layout with at least one other field. Then

Go to Layout [repclear]

Go to Field [repfield]

Loop

Set Field [ , ""]

Go to Next Field

Exit Loop If [Get(ActiveFieldName) <> "repfield"]

End Loop

Substitute your field name for repfield and don't specify a field in the Set Field step, only the null result.

Or lookup an empty global repeating field with same number of reps, using a relationship gID :: ID.

Anytime you'd change the gID field, this would cause a relookup to the current record.

Set the Lookup Options to not copy if no match/empty wink.gif.

Of course, this doesn't work to reset a global repeating field.

  • Author

thanks guys, that helped alot

Much better to solve the real problem and get rid of the repeats. They are tempting for novices but are almost always a source of trouble, as opposed to a real relational design.

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.