Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with submitted multiline text #15

Open
sphkress opened this issue May 3, 2017 · 1 comment
Open

Error with submitted multiline text #15

sphkress opened this issue May 3, 2017 · 1 comment
Labels

Comments

@sphkress
Copy link

sphkress commented May 3, 2017

As I could see, there is a closed issue about multiline text #2 , but apparently this seems still to be a pending issue. Recently, I was trying to get a full list of all submitted data in a single CSV, but as my standalone solution is tailored to my form, it's not really usable here. But I can give a hint how I have solved it:

The multiline-textarea was the last field of my form. So, when I read the contents of the text data, I split the full content at the label value of the textarea

$textarea = explode("\r\ntextmessage:",$fulltext,2);

Then I manipulate all the linebreaks in $textarea[1] which now contains only the value of "textmessage". And then I just implode the array again by using the label value again:

$fulltext = implode("\r\ntextmessage:",$textarea);

Now I can handle the remaining linebreaks, as there is only one line per input/textarea.

This could be done globally, maybe referring to the original form values, but as I am not a developer, this seems too much for me to do in this place.

@nhayward
Copy link

Any word on this? I've just noticed this same problem on my site as referenced in #2 and I have had to manually remove the line breaks from those files in order to browse form submissions in the data manager. In addition, the email notification action hasn't worked for these particular submissions. I have the form set up to email the site owner and then save to the data manager on submit, but no emails were received for submissions with multiline messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants