The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
/r/n characters in textarea fields
Didn't work exactly for me but found some decent workarounds for issues with this reference here:

I used <?=str_ireplace('\r\n',' ',@$fields['problem_description'])?>

It isn't a catch all for instance a double new line will show as "\r\n\r\n" however a single carriage return is parsed correctly.

ucfirst() and ucwords() are also helpful for mandatory capitalization.

Anyway it's a partial fix Don't know why this isn't resolved yet.
I wanted to revive this topic to ask for some help.

I'm using 2.26 formtools with an external form. I'm able to display the form submission contents to the user on my "thanks" page but any ', ", or carriage return entered in a textarea field in the form gets displayed in the thanks page with escape slashes> For example, submitting this text into a textarea comments field in the form:

You "DON'T" need to include
contact information in your
ad copy.

Results in this text being displayed on the thanks page:

You \"DON\'T\" need to include\r\ncontact information in your\r\nad copy.

making the submitter think there's something wrong with their form submission. How do I suppress this behavior?

Forum Jump:

Users browsing this thread: 1 Guest(s)