Welcome to the LimeSurvey Community Forum

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

attaching a file to a question

  • Ellen53
  • Ellen53's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202006 by Ellen53
attaching a file to a question was created 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.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202009 by Joffm
Replied by Joffm on topic attaching a file to a question
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.
  • Ellen53
  • Ellen53's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202283 by Ellen53
Replied by Ellen53 on topic attaching a file to a question
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.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202287 by Joffm
Replied by Joffm on topic attaching a file to a question
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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202298 by holch
Replied by holch on topic attaching a file to a question

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...).

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.
  • Ellen53
  • Ellen53's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202320 by Ellen53
Replied by Ellen53 on topic attaching a file to a question
[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.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202324 by tpartner
Replied by tpartner on topic attaching a file to a question
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.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago - 3 years 9 months ago #202325 by Joffm
Replied by Joffm on topic attaching a file to a question
Hi,

as written in the manual
manual.limesurvey.org/Workarounds:_Manip...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: 3 years 9 months ago by Joffm.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202329 by DenisChenu
Replied by DenisChenu on topic attaching a file to a question
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 service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: tpartner
The topic has been locked.
  • Ellen53
  • Ellen53's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202332 by Ellen53
Replied by Ellen53 on topic attaching a file to a question
thank you all, I think it works, can hardly believe it ;)
very happy with that.
The topic has been locked.
  • Ellen53
  • Ellen53's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202333 by Ellen53
Replied by Ellen53 on topic attaching a file to a question
thank you so much for your answers.
Volunteers are priceless for sure!
The topic has been locked.
  • Ellen53
  • Ellen53's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202334 by Ellen53
Replied by Ellen53 on topic attaching a file to a question
thanks for your answer, it works!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose