I need to customise bizform when user clicks on the submit js will validate data if validation is success i need to send a mail based on the dropdown value.
if select Event Alert i need to send mail with that particular email template like alert email template. if select payment i need to send mail with that particular email template like payment email template. if select Login i need to send mail with that particular email template like login email template.
like that i need to send the email based on dropdown value for every option i have unoque email template.
how can i achieve it ???
It could be like this:
{% if (dropDownEmailField=="some@email.com") { %} <p>This is some email email message</a> {% } |(identity)GlobalAdministrator%}
And of course, as many times as many emails you list.
Do you really need a javascript validation? Kentico offers really great validation rules by default and also a notification message can be customized based on selected drop-down list value.
I am already done with validation but notification message is dependent on the drop down value. if my dropdown contains 5 values each value has it's own unique email template if i selected value 3 then i need to send email template 3 or i selected value then i need to send email template 5 like that that's why i choose customization or is there any other way to do it in cms with conditions ????
Then create a global event handler to determine which email template gets sent. OR use macros in your current auto responding email to modify values or format your email.
How to get specific email template in macro ????
Hi Gopi,
Our Kentico MVP Brenden wrote this articleto help us.
Plese take a look. This is full with great examples.
Cheers Chetan
Please, sign in to be able to submit a new answer.