Form Builder has successfully passed the information into Form Browser and I can get this to display nicely on a website page. Apart from the text from a text area as it strips out the paragraphing leaving a solid block of text. When viewed in the the Form Browser admin the text is ok.
In the Form Browser Template I'm using this <p>{$resp->values[6]}</p>
For this field name "Brief Details" is there a way to code it so it leaves the text formatting in?
Many thanks.
Form Browser strips out text formating Topic is solved
Re: Form Browser strips out text formating
Check your templates and pages and remove any {strip} blocks. also, if content is stored in variable {$content|strip} will also remove those line breaks.
Re: Form Browser strips out text formating
A textarea will typically save line breaks as newlines, not html line breaks or paragraphs. I don't think it would be FB/FBr changing them. You can use |nl2br to convert them to <br>, see https://www.smarty.net/docs/en/language ... .nl2br.tpl
Not getting the answer you need? CMSMS support options
Re: Form Browser strips out text formating
Thanks for both replies. When stuck it's good to have ideas of where else to look. I would never have got there myself and such a tiny bit of code!
<p>{$resp->values[6]|nl2br}</p>
Thank you.
<p>{$resp->values[6]|nl2br}</p>
Thank you.