Welcome to the LimeSurvey Community Forum

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

Version 2.6 example/template

  • kevinleung
  • kevinleung's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 7 months ago #205384 by kevinleung
Version 2.6 example/template was created by kevinleung
Hi all,

I am using 2.6 version and I found 2.6 need more programming knowledge.
Could anyone teach me how to validate Single choice question? I guess should be using javascript. Thank you!


I tried to find some resource online, most of the resource online is version 3.X
I feel that i will have more challenge in future...
Can anyone share some useful resource (e.g. example, javascript example), so I can learn more on 2.6 version?

Thank you very much!

Kevin
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago - 3 years 7 months ago #205388 by Joffm
Replied by Joffm on topic Version 2.6 example/template
Hi,
in which way you want to "validate" a single choice question?
If it is mandatory, you will get an answer.

Or do you want to let the respondent click until he selects the right answer?

Please, explain.

Joffm

And of course, the documentation covers the actual version.
Your version is more than 4 years old, isn't it.
You should consider an update,

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 7 months ago by Joffm.
The topic has been locked.
  • kevinleung
  • kevinleung's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 7 months ago #205389 by kevinleung
Replied by kevinleung on topic Version 2.6 example/template
Hi Joffm,

Sorry, my explanation is not clear enough...
I want the respondent selects the right answer
May cross with other questions. (e.g. Q1==1 and Q2==2)

Thank you!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205404 by Joffm
Replied by Joffm on topic Version 2.6 example/template
I saw that validation is available in version 3.x.

So as I said before, consider an update.

But if the respondent cannot proceed without clicking the right answer, why do you ask this question?
If it is only to have a stored answer you may autopunch this question by an equation.
Or either you only show the right answer in this question or you use a question of type text display to tell him the right answer.

Sorry, I am really confused about the reason to do this.

Joffm

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 7 months ago #205412 by holch
Replied by holch on topic Version 2.6 example/template
Are we really talking about LS 2.6 or are we talking about LS 2.06 LTS?

I highly recommend to update from 2.6 to 3.x for a couple of reasons:

- 2.6 is not even the latest version of the 2.5x branch, you should be somewhere at 2.7x
- Your software hasn't received bug fixes and security updates for quite a while
- 2.5x was probably one of the worst releases of Limesurvey and I wouldn't want to use it in production.
- Very few people will be still working with 2.7x and thus it is difficult to help you with specific answers, because it is hard to tell what was possible in LS 2.7x and what was not.

Therefor I can only recommend to update to LS 3.x (DO NOT go to LS 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.
  • kevinleung
  • kevinleung's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 7 months ago #205415 by kevinleung
Replied by kevinleung on topic Version 2.6 example/template
Hi Joffm, because I want to cross check the answer (To avoid the respondents random pick the answer)
The respondent could go back and choose the right answer if they get alert.
The topic has been locked.
  • kevinleung
  • kevinleung's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 7 months ago #205420 by kevinleung
Replied by kevinleung on topic Version 2.6 example/template
Hi holch, I checked my version, it is 2.6.4-lts.
I agree it is a really old version...
Some of the plugin support 2.X version...so I cannot update to 3.X...
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205456 by DenisChenu
Replied by DenisChenu on topic Version 2.6 example/template

kevinleung wrote: Some of the plugin support 2.X version...so I cannot update to 3.X...

Are you sure ?

Own plugin or public plugin ?

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 topic has been locked.
  • kevinleung
  • kevinleung's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 6 months ago #205528 by kevinleung
Replied by kevinleung on topic Version 2.6 example/template
It is own plugin...
Actually I am using 3.X, but this is an old project so I have to keep using 2.6.4....

May I know how to set the validation for single choice question? Thank you!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose