The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
line breaks from textarea in html emails - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: line breaks from textarea in html emails (/showthread.php?tid=256) |
line breaks from textarea in html emails - zeniph - Aug 23rd, 2009 Hi there firstly amazing piece of work, used version 1 a few times and this is even tighter. The only issue I encountered was the line breaks in HTML emails from textarea fields being stripped out of my emails (using phpmail, smpt wasnt available). Breaks we're still there on the backend when I browsed the submission. Field type was set as textarea. I resolved the issue with my limited ability by changing line 1242 in global/code/emails.php to: PHP Code: $placeholders["ANSWER_$field_name"] = nl2br($field["content"]); i.e. added in the nl2br() Seems to work fine for me but perhaps I've done something wrong or missed some other setting. Maybe this is of assistance to someone else or perhaps its a minor bug Again great piece of work. RE: line breaks from textarea in html emails - Ben - Aug 24th, 2009 Hey Zeniph, Thanks for this! Yes, this looks like a bug. HTML emails should definitely have newlines converted to page breaks. I'm just putting together a list of bugs to work on for the next release; I'll be sure to include this one too. Thanks again! - Ben RE: line breaks from textarea in html emails - zeniph - Aug 24th, 2009 no thank you! The same issue also seems to apply to the HTML/Print friendly popup window for printing off record sets. The coding looks a little more complex (to me) in that area and I havent been able to resolve for myself as yet. z RE: line breaks from textarea in html emails - Ben - Aug 26th, 2009 Ooh - thanks. I've fixed the first problem locally, so that'll be in the next build. But I'll log your second issue (HTML/Printer-friendly popup) as a second issue. Thanks! - Ben RE: line breaks from textarea in html emails - Marlee66 - Sep 21st, 2021 Hopefully, you second issue will be resolved soon as you have raised you keen issue here. Last weekend I also brought my problem here that was solved by the senior members of this forum who also shared this https://www.thelastamericanvagabond.com/sat-act-essay-writing-tests-optional-but-recommended-what-does-it-really-mean/ article with me to become a fine student. |