FAQ - Umbraco

Question
Changing the Umbraco Doc2Form Email Font Size
Answer

This tutorial is designed for Doc2Form version 3 but steps will be similar for other versions.

Luckily Doc2Form uses an ascx file for most of it's programming so it is easy to make changes to it. In order to change things like the font size of emails that are emailed by Doc2Forms "Doc2Form - Email (no save)" macro - and others, follow the steps below:

  • Navigate to the root of your Umbraco website, then go to "App_Code" and find Doc2Form.ascx.cs and open it with your favourite CS editor
  • Do a search for the following text: "mm.Body = _formCustomMessage.Replace" - this will take you to the appropriate line to edit to make the changes
  • On that line, change all <pre> & </pre> tags to <div> & </div> tags

Now reload your email form and test it. The font should be the standard for the page. You can of course make changes like this in other areas of the page, for example adding a style attributes to the div tags to make more detailed changes.

Enjoy!

If you found this information useful, please share it!


This FAQ was last updated on Wednesday, September 30, 2015

Contact Information

To find out more about Ava solutions you can contact us in a number of ways:
Follow Us...