Attributes with multiple lines of text (csv upload)

More
10 months 6 days ago - 10 months 6 days ago #187065 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?
Last edit: 10 months 6 days ago by bdeprez.

Please Log in to join the conversation.

LimeSurvey Partners
More
10 months 6 days ago #187066 by bdeprez
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

Please Log in to join the conversation.

More
10 months 6 days ago #187067 by tpartner
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.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

More
10 months 5 days ago #187097 by holch
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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
10 months 4 days ago #187106 by bdeprez
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.

Please Log in to join the conversation.

More
10 months 4 days ago - 10 months 4 days ago #187107 by tpartner
Forest for the trees... :)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Last edit: 10 months 4 days ago by tpartner.

Please Log in to join the conversation.

More
10 months 4 days ago #187108 by holch

@holch - I can't use multiple attributes as the number is variable...


Makes sense.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now