Form Builder Message And Carriage Return - Question | JoomShaper

Form Builder Message And Carriage Return

B

bouey

SP Page Builder 1 year 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

0
2 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #149226

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.

0
B
bouey
Accepted Answer
1 year ago #149239

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

0