Welcome to the LimeSurvey Community Forum

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

Dynamically hide answer options without "next" button + sth better than LS ?

  • elliotog
  • elliotog's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 weeks 1 day ago #270945 by elliotog
Your LimeSurvey version: 5.6.9
Own server or LimeSurvey hosting: limesurvey.calypso.univ-lr
Survey theme/template: Customed (University one's)
==================
I managed to update number of answer thanks to : (thanks @Joffm)
forums.limesurvey.org/forum/can-i-do-thi...tion?start=15#216947
Now I wondered if it could be possible to have the same thing but in the same group (= stay on the same page, which would allow to spare one click by subgroup filled). LSS attached.

Furthermore, I just wanted to know if a survey management software better than LimeSurvey (which
  • allows to use dynamic things like create an uncertain number (of repetition) of group/question/answer, 
  • is more intuitive to use 
  • is easier than strarting from scratch with HTML/CSS/JavaScript -> Maybe a Python's library ? I'm used to coding with R, which offers a library called "shinysurveys", seems good but its version is 0.2.0 and it would probably take time to code some functionalities already available in LS ...)
Thanks,
Elliot

 

File Attachment:

File Name: limesurvey...7744.lss
File Size:128 KB

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 1 day ago #270948 by Joffm
Sorry, I do not really understand what you want to achieve.The questions (text) are a bit short.
Therefore I do not know what to enter and why.
Nevertheless:

allows to use dynamic things like create an uncertain number (of repetition) of group/question/answer, 

LS does  not support loops, but you can do the following:
If there number of loops is rather small (10, 20) you create as many questions, groups and display as many as needed.
Here is a javascript solution to dynamically add rows in an array.



If the number of loops is greater you may use some kind of "father - son" survey.
In the "father" survey you ask some general things, the questions at the beginning, then
you link to the "son" survey which contains the questions to loop (once)
At the end of this "son" survey you again link to it and start again with the next loop, This the respondent can do as often as needed.
And if necessary you may link to another survey to ask the rest of the - not looped - questions.

is more intuitive to use 

What do you mean? For the respondent? For the admin?
In my opinion LS is really intuitive. You only click the question type, add some texts and settings, sometimes a condition with ExpressionScript; that's it.
Often you get in trouble when you try to display a paper-pencil questionnaire 1:1 as online survey, or you try to display a badly designed survey.

is easier than strarting from scratch with HTML/CSS/JavaScript

Usually you don't come into touch with these things.
You seem to use the "source code editor". With the "WYSIWYG" editor you can style all your texts without any knowledge of such things.
But in case you want to use these things, LS allows it. LS is as flexible that you can do such a lot of things (own plugins, ajax calls, javascript, etc.) that are not possible in other "commercial" tools.
You can find examples of some gamification with javascript and some other libraries in my "Tutorial 3: Gimmicks".
It's in the German part, about page 21 +-

And I see you talk about "libraries". Did you have a look at the workarounds in the manual?

Joffm

I read your comment, but I didn't want to delete this.
Of course, you may try other tools.
It's always  personal preference; e.g. in my opinion the Microsoft Office Suite is not intuitive at all after they invented the so called "ribbon bars"
And universities? Yes, many, most of them do not allow scripts. This is easy to understand from the admin's point of view.
On the other side you have the option to get your own installation - hosted at LimeSurvey - for 17.00 €/month (as a student)


 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

More
3 weeks 3 hours ago #270985 by jelo

Furthermore, I just wanted to know if a survey management software better than LimeSurvey (which
  • allows to use dynamic things like create an uncertain number (of repetition) of group/question/answer, 
  • is more intuitive to use 
There are lot of survey tools available these days. In the end you need to test them all for yourself. You will be surprised how different all these tools are when it comes to certain features. Even the biggest survey tools lack certain features you might expect everywhere. 
As Joffm already pointed out you are looking for the feature "loops". That feature is not uncommon. Search for "loops survey" in your preferred search engine.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 6 days ago - 2 weeks 6 days ago #270992 by holch
Like Jelo says, there are thousands of survey tools out there and all have their advantages and disadvantages and it is hard to recommend anything, as it really depends on what you are looking for, exactly.

"Easy to use" is also relative, like Joffm says. Limesurvey might not always have the most straight forward approach, but once you get used to it, I personally find it quite easy to use. There are also ways to automate things or make it quicker (by exporting and importing text files for mass adaptations, for example) which many other tools don't have.

Limesurvey is missing some features that I find quite important, e.g. the loops you mentioned, and also answer option relevance for single punch questions. Most things can be achieved with some kind of workarounds, but of course the workaround are not a perfect solution, as they might break with version updates and changes to the themes, etc. Let's see if the next version bring some updates to those missing features, as the last couple of versions seem to have mainly focused on the interface.

On the other hand I find that Limesurvey, for being open source and allowing scripts and plugins (if the super admin doesn't block them), is probably one of the more versatile tools out there, if you are willing to understand how it works.

To my knowledge, Limesurvey is the most complete package overall in the open source world when it comes to surveys (even if it is missing some things). There are a lot of commercial packages out there that might have more functions and/or are more suited to the way you work or want the tool to work, but generally there is a huge price tag on these and most of them do only offer cloud, nothing selfhosted.

Anyway, as you are looking for libraries" and seem to be open for some coding, someone posted about surveyjs a while ago. Maybe that is what you are looking for. But as always, you might find some things that are better suited there or are available, while other things don't work as expected or are not available.

However, I personally would recommend to get a bit deeper in with Limesurvey and Expression Script and you might actually get used to the way Limesurvey works and most probably enjoy it.

If you are willing to install your own instance of Limesurvey, you can also go around the limitations your university has put on their LImesurvey installation (if I remember your situation right from other posts).

So, Limesurvey is for sure not perfect. All three posters here are probably also part of those that most critique the platform and ask for new features and changes.
But at the end, I think it is still the tool to go when it comes to flexibility, especially for more complex surveys. With the complexity interfaces generally get more complicated. And the history of Limesurvey for sure also has an impact. Many open source tools lack a certain focus on UX and Limesurvey for sure is no exception. On the other hand, the extrem diversity of the LS user pool makes things also tricky. A lot of people (especially students), only want to do simple surveys and are often overwhelmed with all the features. On the other hand you have heavy users that wouldn't want all those features hidden under a oversimplified GUI.

And sometimes I see students that want to do really complex surveys, but then are surprises that this doesn't work out of the box (and I am not talking about you here). What they often don't realize is, that the things they want to do, even in commercial packages most probably would also need an experienced survey programmer, who would spend quite some time on developing their survey. But they get discouraged when things can't just be clicked together in an hour for their bachelor or master thesis. I don't think they will find any tool that is right for them, because they all need some time to get deep into them, if you want to do complex surveys. Of course, some tools solve things different/better than others for certain functions/approaches. But in those cases of very complex survey designs vs. little experience / or little willingness to put some time and effort into it, there is probably no tool that can fix this. In those cases I recommend to contract an experienced survey programmer with the respective tools. But of course, no one has the budget for this.

But with the help of the forum (and especially people like Joffm or Tpartner) a lot of people managed to put some fairly complex surveys on the way, once they accepted that they might not get a solution within 1h. 

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.
Last edit: 2 weeks 6 days ago by holch.

Please Log in to join the conversation.

  • elliotog
  • elliotog's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 6 days ago #271003 by elliotog

Sorry, I do not really understand what you want to achieve. The questions (text) are a bit short.
Therefore I do not know what to enter and why.


I would like the same as attached (see above) but without the "next" button , which seems currently necessary though in order to make the Multiple questions named "Q...TabHidden" reactive to the equations named "Q...EqTabHidden". It would mean to merge every group named "Lieu ..." but I couldn't find a way to render TabHidden system in this wished case (one group where reactivty works)

LS does  not support loops, but you can do the following:
If there number of loops is rather small (10, 20) you create as many questions, groups and display as many as needed.
Here is a javascript solution to dynamically add rows in an array.

Actually we already chose this way, but I'd enjoy to see the code you wrote to build this JS array !
 

You seem to use the "source code editor". With the "WYSIWYG" editor you can style all your texts without any knowledge of such things.

Where can I reach this modus ? I've searched in vain.
 

However, I personally would recommend to get a bit deeper in with Limesurvey and Expression Script and you might actually get used to the way Limesurvey works and most probably enjoy it.

Thanks Holch, I'll consider this option ! ^^

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 5 days ago #271026 by Joffm
Hi,

but I'd enjoy to see the code you wrote to build this JS array !

Search the forum for "varLengthArray"!

Where can I reach this modus ? I've searched in vain.

In your account. In the upper right corner where you see your name.
There you select "personal settings" and "Editor mode"

But I still do not know what is your desired workflow.
I enter something in Q1.
This is an answer option in Q3 with the "Other" otion.
If I enter something in the "Other option, this and the answer of Q1 are inserted in Q5.
And so on in Q7.

Now, if it is something like a journey, my first screenshot seems to cover your design quite well.
The destination of the stage is inserted as start in the next stage.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • elliotog
  • elliotog's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 1 day ago #271060 by elliotog
Hi !

Search the forum for "varLengthArray"!

I found this there forums.limesurvey.org/forum/can-i-do-thi...re-rows-to-the-array , thanks ! But 2 things :
  • The survey I sent you above is a draft of a biger one with columns 
    • Street (free text*)
      • * actually default free text but I would like to offer a dynamic List with the previous places entered by the surveyed person
      • Is it possible in LimeSurvey with JS ?
    • City (free text*)
    • Transport Mode (mulltiple choice, with "other")
    • Reason of moving (mulltiple choice, with "other") ...
      • ... where there are conditional questions (sport -> outside or inside ? walking  -> along the sea or not ?)
      • It means dynamic columns in the table (I could include it in the reasons if it's too complicated)
By the way, I've finally discovered that my university account indeed destroyed CSS ot JavaScript things once I come back to the survey, cause I've tried with a limesurvey personal account and all script work and remain valid even after leving and coming back to limesurvey, so I definitively am going to contact IT administration of my University in order to fix it.

Elliot 

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 1 day ago #271066 by holch

so I definitively am going to contact IT administration of my University in order to fix it.


I don't want to discourage you, it is surely worth a try. But I highly doubt that they will make that change, because it would be applied to every user of the installation and I guess they are trying to avoid that one of the students is applying malicous code in one of the surveys.

In any way: Good luck. Because teh XSS filter is a pain when dealing with CSS and Javascript.

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.

Please Log in to join the conversation.

  • elliotog
  • elliotog's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 21 hours ago - 2 weeks 3 hours ago #271073 by elliotog

If there number of loops is rather small (10, 20) you create as many questions, groups and display as many as needed.
Here is a javascript solution to dynamically add rows in an array.




If the number of loops is greater you may use some kind of "father - son" survey.
In the "father" survey you ask some general things, the questions at the beginning, then
you link to the "son" survey which contains the questions to loop (once)
At the end of this "son" survey you again link to it and start again with the next loop, This the respondent can do as often as needed.
And if necessary you may link to another survey to ask the rest of the - not looped - questions.

So let's assume I can't use JavaScript, is there a way to stay on the same page with response dynamicaly memorized ? 

EDIT : My University allowed me to edit the theme, how can I add it to custom.js ?
Last edit: 2 weeks 3 hours ago by elliotog.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 week 6 days ago #271091 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose