Customize Ektron HTML Form Email Layout

白昼怎懂夜的黑 提交于 2019-12-13 01:25:54

问题


I would like to know if there's a way to customize the email HTML body contents when submitting an Ektron HTML form.

For example, a form is submitted and the form data is emailed to john@doe.gov. Upon opening the email, there is a table containing the data from the submitted form. I want to know if there's a way to modify the HTML table which was generated for that email.

My goal is to experiment with some CSS to force word-wrapping in the table so lengthy textarea-input data will be wrapped appropriately.


回答1:


I've never tried customizing it, so I don't know if there are any "gotchas", but these files look promising:

  • /Workarea/controls/forms/DefaultFormEmailBody.xslt
  • /Workarea/controls/forms/template_FormDataDisplay.xslt
  • /Workarea/controls/forms/template_FormFieldValue.xslt

The table is generated in "template_FormDataDisplay.xslt", and the individual table rows are generated in "template_FormFieldValue.xslt".

The usual "I want to modify something in the workarea" warning applies: Make backups of any file you change, and know that installing an upgrade to Ektron will overwrite any of your changes.




回答2:


Are you using php? Because you can edit the way that email looks once you open it. This is an awesome tutorial:

http://tangledindesign.com/how-to-create-a-contact-form-using-html5-css3-and-php/



来源:https://stackoverflow.com/questions/25690713/customize-ektron-html-form-email-layout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!