Customize XForms e-mail

Vote:
 

Hi! I want to customize the XForms e-mail (generated from the button property Send e-mail to this address) and add some more text to it.

1. Is it possible to add text from properties on the page where the form is used?

2. Is it possible to add text fields as form properties to add in the e-mail?

Thanks.

#66896
Mar 12, 2013 11:39
Vote:
 

Hi. The answer to both your questions is yes, but probably not in the way you'd want it to work. What you'll have to do is hook in to the BeforeSubmitPostedData event and do it yourself. There you can cancel the submit and compose/format your own e-mail...

#66904
Mar 12, 2013 12:44
Vote:
 

This link helped me: http://labs.episerver.com/en/Blogs/Linus-Ekstrom1/Dates/2009/8/Altering-the-XForm-email-body-to-make-it-look-more-like-the-actual-form/

Thanks Henrik.

 

#66907
Mar 12, 2013 13:18
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.