Form Builder message and carriage return - Forum | JoomShaper
Awaiting an answer SP Page Builder

Form Builder message and carriage return

Asked by bouey 2 years ago Last activity 2 years ago

How to keep the carriage return put in the textarea

i use this email body
<p style="font-size:12px"><strong>Product:</strong>{{product}}</p>
<p style="font-size:12px"><strong>Message:</strong>{{message}}</p>
<p style="font-size:12px"><strong>From:</strong>{{name}}</p>
<p style="font-size:12px"><strong>Email:</strong>{{email}}</p>

all is working fine but {{message}} from the textarea remove all \r\n it's more difficult to read a long content.
i don't see any other fieldtype like this form in your forum description

SP Page Builder 3 or 5 is the same

Stéphane

2 replies

Paul Frankowski Senior Staff

HI Stéphane,

probably becuase this is textarea field without Text editor inside, and by default it works like that.

I will add your request to wish-list to improve that in one of updates, but it's all I can do by now.

bouey Asked this

The problem with the carriage return is due to the fact the email are send in htmlmode
in the file components/com_sppagebuilder/addons/form_builder/site.php line 698

$isHtmlMode = true;

in html mode the carriage return \n\r can't work it's <br/> it's normal the result is not what i want

yes a richeditor for the form builder is necessary

i manage to have the mail correctly formated for me with a non html email

Stéphane

Log in to reply.