Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Line breaks in email template from bizform View modes: 
User avatar
Member
Member
eric.savage-clyral - 1/3/2013 8:36:44 AM
   
Line breaks in email template from bizform
I see that the notification email template for a bizform submission does not honour line-breaks from a text area. Is there a standard way to convert this into html line breaks in Kentico?

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 1/18/2013 5:12:57 AM
   
RE:Line breaks in email template from bizform
Hi Eric,

Could you please describe in more details what did you mean? Where are you creating your template and how did you edit it as a plain text or in the HTML version?

Best regards,
Martin Danko

User avatar
Member
Member
eric.savage-clyral - 1/21/2013 1:51:49 AM
   
RE:Line breaks in email template from bizform
We create a contact form through CMS Desk > Tools > Forms. The "Comments" field type is Text area.

For the notification email, we use a custom layout, with the fields as follows:

$$label:Comments$$
$$value:Comments$$

User inserts carriage returns (new-lines) in the text area and submits the form. When the email is sent through, it doesn't convert the carriage returns into html-suitable new-lines (e.g. <br/>), so all the text comes through as one paragraph. Either this should be done automatically, or we need a command to invoke this.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 2/3/2013 10:06:09 AM
   
RE:Line breaks in email template from bizform
Hi Eric,

You probably have typed the <br /> tag in the wysiwyg mode in the text editor and not in the source code mode. Could you please try to switch to the source code of your custom layout and then try to insert a new line into your template?

Best regards,
Martin Danko