Toggle menu

helper.validatePageInstanceCount([pageName])

Compares the number of instances against the minimum and maximum.

The minimum and maximum are set in the forms designer. You can use this function to compare the count even if the page count isn't set to be validated. Defaults to the current page if a page name isn't set.

Executed

Client-side and server-side.

Arguments

ArgumentTypeDescription
pageNameString, optionalThe name of the repeating page to return information about. Defaults to the page the function is used on if not set

Returns

Returns null for non-repeating pages.

Integer. One of:

  • -1 - The count of instances is less than the minimum
  • 0 - The count of instances is between the minimum and maximum (inclusive)
  • 1 - The count of instances exceeds the maximum
Last modified on August 07, 2023

Share this page

Facebook icon Twitter icon email icon

Print

print icon