Brian Dunning's FileMaker Custom Functions

GetMaxFieldRepetitions ( field )

A function to return the maximum field repetitions on a repeating field

  Average rating: 5.0 (1 vote) Log in to vote

Robert D Trammel   Robert D Trammel - Show more from this author
Lucky Penny LLC

Share on Facebook Share on Twitter

  Sample input:
GetMaxFieldRepetitions( Table::Field )
  Sample output:
6

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

I simplified this function from the FieldMaxRepetitions function on this site submitted by HAZI back in 2014 (https://www.briandunning.com/cf/1450). I use this function to identify how many repetitions are defined on a given repeating field. Useful for setting recursion limits, clearing card window forms which utilize global repeating fields, or any other situation where you would need to have this information on hand

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: