Introduction
In Perfect Gym, the Age Limits feature allows you to define specific age rules—based on years or months—that restrict or validate user eligibility when signing up for classes, courses, or facility bookings. This tool supports the management of your class configurations, ensuring that only members within the appropriate age range can register for age-specific activities, such as senior yoga, kids' karate, or infant groups.
In this article, you will learn how to create, edit, and apply precise age restrictions for your club's activities and facilities.
This article will be helpful for System Administrators and Gym Managers.
Before you start
To access and configure this module, ensure you have the necessary system permissions enabled.
Go to PGM -> Clubs -> System Permissions.
Locate and enable the permission Classes age limits.
Instruction
To access the configuration screen, navigate to PGM -> Classes -> Settings -> Age Limits.
On the main screen, you will see a list of all existing age limits, displaying their minimum and maximum age settings.
Add new age limit: (Button) Pressing this button will create a new age limit.
Minimal age: The youngest age allowed, if no value is listed then 'No restrictions' will be displayed here.
Maximal age: The oldest age allowed for the class, if no value is listed then 'No restrictions' will be displayed here.
Edit: After pressing … selecting Edit will allow you to edit the existing age limit.
Delete: After pressing … selecting Delete will allow you to delete the existing age limit.
Add/Edit Age Limit
The following settings are available within the Age Limit configuration modal:
Limit type: Defines the precision of the age restriction.
Full years: Allows you to set age limits using whole years only (e.g., 18 to 99 years).
Years and months: Allows for granular control by specifying years and months (e.g., 1 year and 6 months), useful for classes targeting infants or toddlers.
Minimal age: The youngest age allowed for the class.
Years: A numeric field to enter the number of years (Range: 0–120).
Months: (Visible only if "Years and months" is selected) A numeric field to enter the number of months (Range: 0–12).
Maximal age: The oldest age allowed for the class.
Years: A numeric field to enter the number of years (Range: 0–120).
Months: (Visible only if "Years and months" is selected) A numeric field to enter the number of months (Range: 0–12).
Validate user age: A checkbox that, when enabled, enforces this age check when a user attempts to sign up for classes.
Configuration Settings
Navigate to the Class Age Limits Page Access the "Class age limits" area within the system configuration.
Add a New Age Limit Click the Add new age limit button located in the header.
Select the Limit Type Choose the appropriate Limit type based on the class requirements:
Select Full years for standard age brackets.
Select Years and months for precise age brackets (e.g., babies or toddlers).
Define the Age Range
Minimal Age: Enter the minimum required age in the Years field. If using the "Years and months" type, also enter the Months.
Maximal Age: Enter the maximum allowed age in the Years field. If using the "Years and months" type, also enter the Months.
Note: You can leave one boundary blank if there is no restriction for that specific end (e.g., leaving Max Age blank creates a "Minimum Age and up" rule).
Enable Validation Check the Validate user age (i.e. when signing for classes) box to ensure the system actively restricts users outside this range from registering.
Save the Configuration Click the Save button to apply the changes.
A notification stating "Successfully added new age limit" will appear upon success.
Edit or Delete Existing Limits
To Edit: Locate the limit in the grid, click the Edit icon, modify the settings, and click Save.
To Delete: Click the Delete icon (trash can). You will be prompted with "Are you sure to delete this age limit?". Click to confirm.
Hints
Display Logic:
If no minimum or maximum age is set, the system will display "No restrictions" for that specific column in the grid.
The system formats the display based on the defined range:
Only Max defined: Displays as
< [Max Age].Only Min defined: Displays as
> [Min Age].Both defined: Displays as
[Min Age] - [Max Age].
Constraints:
The maximum value allowed for the "Years" input is 120.
The maximum value allowed for the "Months" input is 12.
System Feedback:
When saving changes to an existing limit, the system confirms with "Age limit was successfully saved".
When deleting a limit, the system confirms with "Successfully deleted age limit".
Where are age limits used in Perfect Gym:
- Classes - If you are restricting age limits for classes, the age limit must be set in PGM->Classes->Class Types
- Groups/Courses - If you are restricting age limits for groups/courses, the age limit must be set in the group in PGM->Classes->Groups and in the class type in PGM->Classes->Class Types
- Facility Booking - If you are restricting age limits for a facility booking, the age limit must be set in the facility booking definition in PGM->Classes->Facility Booking Definition
- Payment plans - Payment plans do not use this function to control age limits. Please refer to the min/max age fields within payment plan set up
Troubleshooting
Issue: Cannot enter a value higher than 120 in the Years field.
Cause: The system enforces a hard limit of 120 years for age validation.
Solution: Ensure the age entered is 120 or lower.
Issue: Cannot enter a value higher than 12 in the Months field.
Cause: The months input is restricted to a standard calendar year cycle.
Solution: Increment the "Years" field by 1 and reset the "Months" field if the value exceeds 12.
Issue: The age limit saves but users are not being blocked from signing up.
Cause: The validation setting may be disabled.
Solution: Edit the age limit and ensure the Validate user age checkbox is selected.
Use Case Examples
Example 1: Setting an Adult-Only Class Restriction
Goal: Restrict a class to users 18 years and older.
Steps/Settings:
Limit Type: Full years.
Minimal Age: 18 Years.
Maximal Age: Leave empty (No restriction).
Validate user age: Checked.
Example 2: Creating a "Mommy and Me" Infant Group
Goal: Restrict a class to babies between 6 months and 18 months old.
Steps/Settings:
Limit Type: Years and months.
Minimal Age: 0 Years, 6 Months.
Maximal Age: 1 Year, 6 Months.
Validate user age: Checked.
Example 3: Seniors Yoga Class
Goal: Create a class specifically for members 60 years and older.
Steps/Settings:
Limit Type: Full years.
Minimal Age: 60 Years.
Maximal Age: 120 Years (or leave blank).
Validate user age: Checked.
Example 4: Kids Karate (Strict Range)
Goal: Limit a class to children aged exactly 5 to 10.
Steps/Settings:
Limit Type: Full years.
Minimal Age: 5 Years.
Maximal Age: 10 Years.
Validate user age: Checked.
Example 5: Open Age Group (Informational Only)
Goal: Create an age category for reporting purposes without blocking sign-ups.
Steps/Settings:
Limit Type: Full years.
Minimal Age: 12 Years.
Maximal Age: 99 Years.
Validate user age: Unchecked.