-
Notifications
You must be signed in to change notification settings - Fork 6
Description
It would be great if there was a way to attach multiple actions to a form. That would make it possible to send an email to the website owner as well as the one who filled out the form. It would also make it possible to execute a custom PHP method which creates a concrete5 users or a page or anything.
We could use events for that and simply create a second package if a custom action is needed or we could create an interface one could derive and register in a serviceprovider..
The goal would be a flexible system, whether we use events or a custom, extensible system.
Depending on the action we might have to ask the one who creates the form for some input. Which field is the e-mail field when sending an email, what's the subject and the text/html body, maybe even with some parameters to dynamically insert attributes from the form. Maybe the parent page underneath which we should create a page if we are using a "create page" action...