I have a class form that submits to a SharePoint list. In this form, i have a calendar field that the user can select a date. I also have a checkbox field in a gallery that is connected to a list of classes.
I also have a calendar event list in SharePoint that a Admin adds classes to + a field called Class Max which they set which could be 10, or 15, or etc..... The admin can update this list at anytime and it will list all the classes that the user can select a checkbox to pick a class.
- Class submission list
- Calendar event List of classes with dates and times and class max
I created the dataconnections to the Calendar event list with the hope that the user, when they select a class it will or could provide how many left AFTER those who have or could have signed up already. I would like to be able to
- when a user selects a checkbox, it will provide the number of people that have already submitted for the class. The goal is NOT allowing people to go past the people who have signed up vs the class max. For ex. If a class has a maximum of 10, and when the user clicks the checkbox as the 11 person, it will provide an error.
my question is how can i have the checkbox check the calendar event field (Class Max) vs the number of people that have submitted to the Submission list and not allow the user to signup or atleast throw an error?
i appreciate any help in advance.