Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
8662 มุมมอง

Hello,

I would like to know if it's possible to add a Text field with line break in a mail template ?

I create a text fied with lines break like this :

one word

two words

three words

When I insert this field in my mail template, the result is :

one word two words three words.

How can I have a result with line break ?

Thanks for you help,

Ericzen    

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Eric:

You can wrap the field inside a <pre>....</pre> tag. This will treat the contents of the field as pre-formatted text and preserve the line breaks.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

How can you use ...and keep the template format too. (Example if i add Bold Text in the template)

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thanks Paresh. That works fine !

อวตาร
ละทิ้ง