Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Episerver Forms - Include IF/ELSE in Email template



Is it currently possible to add an IF/ELSE logic in email templates for Episerver.Forms?

The email I want to setup in one of the forms will show varying content, based on the user-selected dropdown value in the form.

I tried setting up the dropdown field to store the content-specific HTML in the value but validation says it can't take any comma's.

Any help would be appreciated!

Kind regards,


May 09, 2017 2:32


  Has anyone found a way around IF/Else in the Email template?



Apr 28, 2022 10:45

You could use the Placeholder API to achieve this by extending the DefaultPlaceHolderProvider. Conditional logic can be added in your custom implementation to set your form field placeholder value to specific HTML based on the form field value.

Refer to documentation

This blog shows an example of how to extend the DefaultPlaceHolderProvider

May 25, 2022 22:18
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.