Welcome to the LimeSurvey Community Forum

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

Card sorting workaround

  • Izabela
  • Izabela's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #123092 by Izabela
Card sorting workaround was created by Izabela
Hello, I would be very grateful if I receive any help with this.
I tried to use the following link manual.limesurvey.org/Workarounds:_Manip...ascript#Card_Sorting and followed instructions. But it seems when am testing survey that this solution is not working for me at all. It is like it does not see any additional script and the question is same as a default.

looks like on picture attached:
Attachments:
The topic has been locked.
More
9 years 3 months ago #123120 by david2013
Replied by david2013 on topic Card sorting workaround
Did you enable Javascript and using version 2.05?
The topic has been locked.
  • Izabela
  • Izabela's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #123127 by Izabela
Replied by Izabela on topic Card sorting workaround
Yes, JavaScript is enabled. Coz if I add to the question script Test and than I run the survey the window Test is popping out.
And I am using the newest version available on website.
However, I thought that it maybe problem that the file template is in wrong place or some issue with database?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #123133 by tpartner
Replied by tpartner on topic Card sorting workaround
Did you try with the demo survey and template provided?

www.limesurvey.org/manual/Workarounds:_M...ascript#Card_Sorting

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Izabela
  • Izabela's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #123136 by Izabela
Replied by Izabela on topic Card sorting workaround
Yes. I started from this and I am not able to make it work
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #123143 by tpartner
Replied by tpartner on topic Card sorting workaround
Can you activate that survey and give us a link?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Izabela
  • Izabela's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #123147 by Izabela
Replied by Izabela on topic Card sorting workaround
Have it only as localhost so you won't be able to access it :(

That is what I did when I wanted to try the workaround example with card sorting.
I downloaded the demo template and demo survey. I added the file demo template to the folder where are all lime survey templates and than I imported the demo survey in Lime survey.

And when I use in Demo survey this script:

<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
alert("Test!");
});
</script>

and I run the survey the test window appears. However, if i exchange it for the script for card sorting and run the survey than nothing happens and question looks like on attached above picture.

Also I realized than if I wanna change the template of the survey the DEMO template is not appearing there. So maybe I should put it in different place or the database is not working properly ?
I don't know how to find Error, because my knowledge in this area is just basic.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago - 9 years 3 months ago #123149 by tpartner
Replied by tpartner on topic Card sorting workaround
Ah, the demo template needs to be placed in yourLimeSurveyRoot/upload/templates/. Then you will see it in the drop-down for selecting templates.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 9 years 3 months ago by tpartner.
The following user(s) said Thank You: Izabela
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #123150 by tpartner
Replied by tpartner on topic Card sorting workaround
...you should also be able to import the template through the template editor interface.


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Izabela
The topic has been locked.
  • Izabela
  • Izabela's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #123151 by Izabela
Replied by Izabela on topic Card sorting workaround
Thanks, will try with that
The topic has been locked.
  • Izabela
  • Izabela's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #123157 by Izabela
Replied by Izabela on topic Card sorting workaround
Unfortunately, even I added the template in right place and I have used that I am getting still the same result. The Card sorting script is still not working. I do not know what is the issue ;/
The topic has been locked.
  • Izabela
  • Izabela's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months ago #123574 by Izabela
Replied by Izabela on topic Card sorting workaround
Hello,
Is there anyone who may know why it is not working even within the file given as an example?
Still wasn't able to solve that problem :(
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose