- Posts: 53
- Thank you received: 5
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Attributes with multiple lines of text (csv upload)
- bdeprez
- Topic Author
- Offline
- Senior Member
Less
More
4 years 8 months ago - 4 years 8 months ago #187065
by bdeprez
Attributes with multiple lines of text (csv upload) was created by bdeprez
Dear all,
This may be a stupid question but I'm looking for a way to have an attribute contain multiple lines of text, like this:
Line 1
Line 2
Line 3
But Limesurvey requires all data to be on one line:
firstname,lastname,email,attribute_1
John,Doe,john.doe@domain.com,Line 1 Line2
But I need to split the lines at import so they show up neatly on different lines in a question and in the email sent to the participants.
I'm doing the upload through a CSV file generated in a different application and of course, if my csv itself contains multiple lines then the upload fails... I tried adding \n but that didn't do the trick...
Anybody any ideas?
This may be a stupid question but I'm looking for a way to have an attribute contain multiple lines of text, like this:
Line 1
Line 2
Line 3
But Limesurvey requires all data to be on one line:
firstname,lastname,email,attribute_1
John,Doe,john.doe@domain.com,Line 1 Line2
But I need to split the lines at import so they show up neatly on different lines in a question and in the email sent to the participants.
I'm doing the upload through a CSV file generated in a different application and of course, if my csv itself contains multiple lines then the upload fails... I tried adding \n but that didn't do the trick...
Anybody any ideas?
Last edit: 4 years 8 months ago by bdeprez.
The topic has been locked.
- bdeprez
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 5
4 years 8 months ago #187066
by bdeprez
Replied by bdeprez on topic Attributes with multiple lines of text (csv upload)
And apologies for posting this in the wrong category (just noticed that) - if somebody can move it over to "Can I do this with Limesurvey" then please feel free to
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
4 years 8 months ago #187067
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Attributes with multiple lines of text (csv upload)
Did you try inserting a <br /> tag where you want the line breaks?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
4 years 8 months ago #187097
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Attributes with multiple lines of text (csv upload)
Like Tpartner. And you could always separate the lines into different attributes as well, then you will have the total freedom of formatting them in the question.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- bdeprez
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 5
4 years 8 months ago #187106
by bdeprez
Replied by bdeprez on topic Attributes with multiple lines of text (csv upload)
It took me the best part of yesterday to overcome the shame of not having thought of the <br> :laugh: :laugh: :laugh:
But it was indeed the right answer...
@holch - I can't use multiple attributes as the number is variable...
Thanks!
B.
But it was indeed the right answer...
@holch - I can't use multiple attributes as the number is variable...
Thanks!
B.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
4 years 8 months ago - 4 years 8 months ago #187107
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Attributes with multiple lines of text (csv upload)
Forest for the trees...
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 8 months ago by tpartner.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
4 years 8 months ago #187108
by holch
Makes sense.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Attributes with multiple lines of text (csv upload)
@holch - I can't use multiple attributes as the number is variable...
Makes sense.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.