Welcome to the LimeSurvey Community Forum

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

Card sorting workaround

More
10 years 4 weeks ago #123092 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:
The topic has been locked.
More
10 years 4 weeks 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.
More
10 years 4 weeks 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.
More
10 years 4 weeks 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.
More
10 years 4 weeks 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.
More
10 years 4 weeks 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.
More
10 years 4 weeks 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.
More
10 years 4 weeks ago - 10 years 4 weeks 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: 10 years 4 weeks ago by tpartner.
The following user(s) said Thank You: Izabela
The topic has been locked.
More
10 years 4 weeks 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.
More
10 years 4 weeks ago #123151 by Izabela
Replied by Izabela on topic Card sorting workaround
Thanks, will try with that
The topic has been locked.
More
10 years 4 weeks 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.
More
10 years 2 weeks 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.
More
10 years 2 weeks ago #123587 by tpartner
Replied by tpartner on topic Card sorting workaround
I have just tested the downloads from the workaround section again on the latest version of LS 2.06 and it works fine for me.

Are you sure you've assigned the correct template?


Unfortunately, without access to a live version of your survey, we can't debug anymore.

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
10 years 2 weeks ago #123588 by Izabela
Replied by Izabela on topic Card sorting workaround
100 % sure.

however, to build my local database and server I used Wamp instead of Xampp. As the version with Xampp did not want to work.
I downoaded Wamp and than I have installed the Lime Survey on the server created by Wamp.
Is it possible that this is an issue?
The topic has been locked.
More
10 years 2 weeks ago #123592 by tpartner
Replied by tpartner on topic Card sorting workaround
No, I doubt it. This is a purely client-side (JavaScript & CSS) workaround. I'm afraid I'm out of ideas.

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.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose