Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 7619 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have 2 related databases that I use to allow people to sign up for weekend activities at my school. Signups is the database for public use. Each signup is one record, containing the person's name, and the activity they want to attend (selected from a dropdown menu.) Events is the admin database that has one activity per record, containing the event name, date, capacity, etc. There is also a portal to Signups that lists the names of those who have signed up. Here's my question: when a user goes into Signups, selects the activity they want, and click "Sign up" how can I have a script check to see that the maximum capacity for that activity hasn't been exceeded?

Version: v6.x

Posted

The Events records contain a repeating field of the participants with a Capacity field, correct? If so, just use a relationship between the activity id in Signups and Events.

If [Count(rel::Attendees) = rel::Capacity]

Show Message ["I'm sorry, but this activity is full."]

Halt Script

End If

Posted

Nope, it doesn't use repeating fields. The Events database has a portal that displays names from the related records in the Signups database.

This topic is 7619 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.