I'm using formulate (v3.5.2) for some simple contact us forms on the website I am working on, and it works well but for one annoying issue - there are no line breaks for text areas.
Its such a small issue, but effectively makes really long emails almost unreadable on arrival.
What's strange is you can add in multiple line breaks by pressing enter in the text area on the front end (when filling out the form), but these get stripped out in the received email, as well as in the formulate submissions in the CMS.
Formulate Line Breaks
I'm using formulate (v3.5.2) for some simple contact us forms on the website I am working on, and it works well but for one annoying issue - there are no line breaks for text areas.
Its such a small issue, but effectively makes really long emails almost unreadable on arrival.
What's strange is you can add in multiple line breaks by pressing enter in the text area on the front end (when filling out the form), but these get stripped out in the received email, as well as in the formulate submissions in the CMS.
Am I missing a simple way of fixing this?
I suspect the issue is that line break characters are ignored as whitespace in email and when presented in the back office.
The simplest thing to do would be to submit a pull request.
First you'll want to create an issue here: https://github.com/rhythmagency/formulate/issues
Then you'll want to create a pull request.
My guess is the FormatValue function is the place you'll want to focus on implementing a solution: https://github.com/rhythmagency/formulate/blob/v3/master/src/formulate.app/Forms/Fields/TextArea/TextAreaField.cs#L30
Some other places you may need to look:
https://github.com/rhythmagency/formulate/issues/214
https://github.com/rhythmagency/formulate/pull/215
is working on a reply...