Hi Jackson,
Yeah, I can totally see the need for this. Unfortunately I can't think of any terribly good way to do this right now.
But here's a hack way, in case you're curious.
- Create a new field to your form called "is_full" (just within Form Tools - you don't need to add it to your actual form).
- Create a new Submission Pre-Parser rule - see:
http://modules.formtools.org/submission_pre_parser/
This would get triggered for all new submissions. In the code, I'd query the database, find out how many submissions have added so far and if it's over the total permissable # of registrations (say 400 or whatever) I'd set "is_full" to "yes". If not, set it to "no".
- I'd then create two new Views:
One called "Registration Full" and add a Standard Filter to limit all results in the View to only show those submissions with "is_full" set to "yes".
The second called "Registration Open". This would be just like the other one, except only show submissions where "is_full" is set to "no".
Lastly, all you'd need to do is map your email templates (the "thanks for registering!" and "sorry, registration full!" email templates) to those Views. That way they'll get sent only when a submission fits into one of those Views - i.e. when the registration is full or not.
It's NOT great, obviously. But it would certainly work...!
Let me know if you need any pointers. I kind of glossed over the SQL bit.
- Ben