Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

attaching a file to a question

More
5 years 2 months ago #202006 by Ellen53
Hi

I am creating a survey that will randomly attribute each participant to one of three groups. I managed to do that (randomizing in three groups). Two groups have to do a different practice, the third group is the control group. I want to attach the instruction for the practice for the two groups to the ransomized question. The instruction is a word document of pdf file that the participants can print (so they can use the print while doing the exercise) of save on their computer. Is it possible to attach a word document to a question. I can put a text up but don't see where I can attach a file.


Thank you
Ellen
The topic has been locked.
More
5 years 2 months ago #202009 by Joffm
Hi, Ellen,
unfortunately you did not mentin the LimeSurvey version you are using.
But as the newer versions (2.50 and up) are based on the bootstrap library you can enter a button like this
Code:
<a class="btn btn-primary" href="https://www.myServer.de/myfolder/myFile.pdf" role="button" target="_blank">Click for instructions</a>



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
More
5 years 2 months ago #202283 by Ellen53
Hello Joffm

Thank you for your reply. The Open University Amsterdam (my university) uses the following version:

Versie 2.06+ Build 160129

probably an older version than you mention. Are there any possibilities in this version?

grtz Ellen
The topic has been locked.
More
5 years 2 months ago #202287 by Joffm
Oh,
in this case you cannot use the bootstrap buttons, but a "usual" button like
Code:
<a class="button-like" href="https://www.myServer.de/myfolder/myFile.pdf" target="_blank">Click for instructions</a>
and you may style it as you like
Code:
<style type="text/css">
.button-like {
  padding:5px 10px;
  border:1px solid #999;
  background:#ccc linear-gradient(#fff,#ccc);
  color:#f00;
  text-decoration:none;
}</style>


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
5 years 2 months ago #202298 by holch

Versie 2.06+ Build 160129


Just a little hint: Your version of Limesurvey is from 4.5 years ago. It hasn't received updates and bug fixes since then.

I would recommend to do an upgrade to 3.x LTS (do not go to 4.x yet...).

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
5 years 2 months ago #202320 by Ellen53
[attachment=2 0937]printscreen question.png[/attachment]


thx for the answers.
It is difficult for me to understand the actions I have to take, am not very familiair with the language used, don´t have advanced computerskills.

I made a printscreen of the question to which want to attach my file (word of pdf file'. Is there a a button (like with email where you can attach a word or pdf file?)
grtz Ellen
The topic has been locked.
More
5 years 2 months ago #202324 by tpartner
That's a very old version but I think if you click on the "image" button in the top row, you should be able to upload the file. Once that is done, you can create a link to it.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 2 months ago - 5 years 2 months ago #202325 by Joffm
Hi,

as written in the manual
www.limesurvey.org/manual/Workarounds:_M...tc..29_in_LimeSurvey
javascript, css or plain HTML are entered in source code mode.

So click on the button "Code" and enter what is in the boxes in my post.

I don't konw where you stored your file.You have to adapt the reference.
This may be somewhere on your server, or you can upload it to the LimeSurvey installation.
And as @tpartner already wrote, best to click on "image" to open the wizard. Here you can upload and get the link to your file.



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 years 2 months ago by Joffm.
The topic has been locked.
More
5 years 2 months ago #202329 by DenisChenu
Really easy comparing to 4.X

Click on the link maker

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: tpartner
The topic has been locked.
More
5 years 2 months ago #202332 by Ellen53
thank you all, I think it works, can hardly believe it ;)
very happy with that.
The topic has been locked.
More
5 years 2 months ago #202333 by Ellen53
thank you so much for your answers.
Volunteers are priceless for sure!
The topic has been locked.
More
5 years 2 months ago #202334 by Ellen53
thanks for your answer, it works!
The topic has been locked.
More
5 years 2 months ago #202335 by Ellen53
thank you so much
The topic has been locked.
More
5 years 1 month ago #202908 by Ellen53
Hello again
I managed to tackle my problem (via the link maker), it seems to work. But when I test the survey it gives this error and the link doesn't work. what can the problem be?

this is the error:
404 Not found.
Unable to resolve the request "upload/surveys/571666/files/Oefening dankbaarheid (u).docx".
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
The topic has been locked.
More
5 years 1 month ago #202910 by Joffm
Hi, Ellen,
when I use this link maker I get something like this:
Code:
<a href="/lime6/upload/surveys/293126/files/UK_questionnaire_NEW.docx" target="_blank">/lime6/upload/surveys/293126/files/UK_questionnaire_NEW.docx</a>
You see the link starts with my installation folder.

And: It is not the best idea to open a docx-file.
Usually the respondent will see the "file open/save" dialog and has to start Word to see the file content.
Better you save the file as pdf.


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose