Welcome to the LimeSurvey Community Forum

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

Create random on the basis of answer option in a question

  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 month 6 days ago #260840 by Mazi
Thanks a lot for this detailed explanation, joffm!

So If I get this right, when extending this from top3 to top5 we will end up with 16 RC sub-questions?!

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 6 days ago #260842 by Joffm
Exact.
N x 3 + 1 (for final)

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: rajkumar_dms

Please Log in to join the conversation.

  • rajkumar_dms
  • rajkumar_dms's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 month 5 days ago #260975 by rajkumar_dms
Thanks joffm

You are the genius joffm

Thank you

Please Log in to join the conversation.

  • rajkumar_dms
  • rajkumar_dms's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 weeks 6 days ago #263008 by rajkumar_dms
Hi Joffm,

How to pick the only 3 selected answer option previous question

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 6 days ago #263015 by Joffm
Didn't you see my "step by step" examples for the two solutions 
1. only ExpressionScript
2. javascript

Joffm 
 

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

Please Log in to join the conversation.

  • rajkumar_dms
  • rajkumar_dms's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 weeks 5 days ago #263041 by rajkumar_dms
Hi Joffm,

I have used the solutions number 2
But i need the some implementation in the same i would like a provision for the true/false for the shuffle option
Could you help on this scenario

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 5 days ago #263044 by Joffm
No idea want you want to achieve.
If you do not want to shuffle remove the call.
If you want to display a different number, adapt the call.

You see, we expect that you study the script and try to understand the script.
A good source of information is "W3Schools"
[url] www.w3schools.com/js/ [/url]

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

Please Log in to join the conversation.

  • rajkumar_dms
  • rajkumar_dms's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 weeks 5 days ago #263052 by rajkumar_dms
Hi Joffm,
Thanks for your guided
I had noticed the some error in the script while going back
Actually when i run the script for the same then go back and changes the some answer or not change the any any answer previously selected then go ahead number of answer (was selected before going back) reduced by -1

Can you please look into this & also attached the screenshot for the same       

And last image is when we going back then next the result is last image

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 4 days ago #263187 by Joffm
Hi, I am really tired to answer.
Fine, you noticed an error.
And now?

Always send the lss excport of your surveys (the relevant questions)
We do not have a crystal ball.

JOffm

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

Please Log in to join the conversation.

  • rajkumar_dms
  • rajkumar_dms's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 weeks 4 days ago #263193 by rajkumar_dms
Thanks for your mail,
Regret for inconvenience!!
After onward i will share the lss export with only relevant question

And also noticed one more the for the same when put some answer then go back change that answer it will not reflected in the relevant question(Q20) and i had made some changes in the java script

Here is the lss file
Attachments:

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 3 days ago #263226 by Joffm
Oh, you really allow to go back?
That's not a big problem.
Iinstead of the default answer in Q20 just create a question of type "equation" after Q1 and Q17 where you preset the value of Q20 {Q20=list(...)}.

But tell me, if you use "question by question" mode, how do you want to hide Q20?
 

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

Please Log in to join the conversation.

  • rajkumar_dms
  • rajkumar_dms's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 weeks 3 days ago #263230 by rajkumar_dms
We want hide it fully like we hide equation type question and perform all the action like equation question

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose