In https://doc.dynamicweb.com/documentation-9/content/apps/forms-for-editors it states that all app configuration can be overriden from the template.
I have a situation that I give the customer a list of departments in the form and when they select one the mail must go to the email address of that department.
So for example the customer has 3 options
- SALES (sales@mycompany.com)
- HR (hr@mycompany.com)
- DEVELOPMENT (monkeys@mycompany.com)
When selecting SALES I need the receipient of the company mail to be changed from the module/app setting to sales@mycompany.com.
What would be the best approach?
Can it be done by a hidden field as stated? And what would the id/name be?
Do I need to post the value and handle it in beforepost observer?
Is there a better way?