Developer forum

Forum » CMS - Standard features » New Forms for editors - Dynamic Admin Email

New Forms for editors - Dynamic Admin Email

António Ramos
Reply

Hi guys,

It's a recurrent request from our clients to send the admin receipt based on one dropdown option selection. For example, there is one dropdown called "Reason" or "Department" and options like "Sales Dep", "Tech Dep","XX Dep". If Sales Dep is selected at the field the admin email should go to xpto@email.com, but if "Tech Dep" is selected should go to xyz@email.com.

There is any standard way to do this? If not how can we accomplish this?

Best regards,

António Ramos


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi António

If you create a field of type select with the systemname "MailRecipient" and add a list of email adresses, users can select who will receive the email:

value;label
sales@hostname.com;Sales department
tech@hostname.com;tech department
spam@hostname.com,ceo@hostname.com;Manager

Votes for this answer: 1
 
António Ramos
Reply

Hi Nicolai

Please don't get me wrong, I'm very happy to see there is a way to do this but I think this can be improved. Let's see the downsides:

  • Emails are in the front-end and will be indexed.
    • Will increase the spam for the company email accounts.
  • Field value stored in database will be the email.
    • If we export the data we can't match correctly the data between the labels.
  • An experienced web user can change/delete the email value in the front-end
  • (untested) What data will be in the email? Maybe the value stored at the database.

If Dynamicweb could change this to the form settings will be a great improvement and eliminate future problems.

Best regards,

António Ramos

 

You must be logged in to post in the forum