formie
formie copied to clipboard
Custom settings for forms and notifications
I'm tweaking notifications in events to generate content depending on the form submission values. Simple example: calculating prices based on field values selected by the user.
It would be great for some edge cases to be able to define settings for a form or notification that we could use in the back-end to hook into. For example, if there is a setting "generate PDF" we could generate PDFs for all notifications that has this setting set to true. (I know PDF's will be a feature in 1.5, but this is just an example).
It could be handy for some edge cases, but of course this is not a super priority :) Just an idea.
More than happy to consider this, my only concern would be the "client-unfriendliness" of this setting, but it's also no different to a field's Input attributes or Container attributes which do nothing without developer intervention. In fact, it might be similar, providing a table of attribute/values that are additional "options" for a notification model.
For now, we've been using either the handle, or the Email Template to be able to switch different behaviours.
The e-mail template is an option, but that would not be sufficient for example if you would like to save generated PDFs to the server as a kind of backup for forms without sending notifications. (Just trying to think about some edge cases here).
The handle is limited because it doesn't allow to write generic code across forms.
But the idea of a table similar to what fields have would already be sufficient I think. This both for forms as notifications.
+1 for this