I’m looking to build an 11ty ‘events’ site with one simple (Netlify-) form for each
StartDates etc. should be content-managed (potentially through Netlify-CMS).
StartDate has a
max number of applicants. When that number is reached, the
StartDate is ‘fully-booked’ and visitors should no longer be able to submit that form.
Quite straight forward, it seems…
My challenge is: when applicants submit the form, it should send an email but also update the
I was thinking of using a Function, running on the
submission-created event, but need it to update the proper
StartDate (-file) contents, commit and rebuild the 11ty site.
Alternatively it could write/update a JSON file with all submissions or something.
But Functions do not have access to the site’s filesystem (and thus content), correct?
It seems such a common use-case: is there a proper way to achieve this?
(Maybe through a GitLab webhook or something?)