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.

Scripting the entry of data into a repeating field

Featured Replies

  • Newbies

I wish to script the pasting of a value into the next blank repetition in a repeating field. I could find not a specific function to allow this and have constructed a complex workaroud...though it works, it seems there must be an easier way! What I did:

1. Created a calc to return the number of the next empty repetition by adding "1" to the result of the function that returns the repetition number of the last populated field.

2. Created a series of "IF" "End IF" loops: IF the value of the above calc is 1, paste in repetition 1. IF the value of the above is 2, paste in repetition 2.....and so on until I reached the number of possible repeats.

Any Ideas?

What you really need to do is quit using repeating fields. I guarantee that if you need to do this amount of scripting, you should be using a related file instead. The question is kind of like asking the best way to encourage the horses with a buggy whip.

-bd

  • Author
  • Newbies

I agree with you in theory...but knowing more about the particular application may make my needs more clear; I do make extensive use of related files. The particular repeating field in question is a list of attendees at meetings. Each meeting is a unique record in a "meetings" file, and each attendee is a unique record in the "people" file. The repeating field in the "meetings" file is a pull-down menu based on a a value list which is determined by the complete list of names in the "people" file. If Suzy Q is a meeting attendee but not in the "people" file, she will not be available on the pull-down menu. There is a "new" button which then starts an external script to add a new person to the "people" file, and then bring them back to the meeting file and enter the name in a particular repetition...ie the first empty one.

Any ideas would be appreciated.

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.