Welcome to the LimeSurvey Community Forum

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

Can i choose answer like this ?

  • mikezhangsky
  • mikezhangsky's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 6 months ago - 6 years 6 months ago #158725 by mikezhangsky
Can i choose answer like this ? was created by mikezhangsky
Q: Consider the answer in order 1,2,3

1:____

2:____

3:____

* these three answer can not been the same. each answer can also choose type of other ,and users can write there 'other' answer

Answer list:

apple , pear, banana, bear, tea, orange, water
Last edit: 6 years 6 months ago by mikezhangsky.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago #158729 by DenisChenu
Replied by DenisChenu on topic Can i choose answer like this ?
Hi
demonstration.sondages.pro/714997?lang=fr#

Using array + dropson attribute must do the trick

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.
  • mikezhangsky
  • mikezhangsky's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 5 months ago #158779 by mikezhangsky
Replied by mikezhangsky on topic Can i choose answer like this ?
Thank you for your reply.


But how can i write a array question with other options? just like the attach picture
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #158817 by DenisChenu
Replied by DenisChenu on topic Can i choose answer like this ?
Need some javascript then … don't have time, maybe tparner have more idea : manual.limesurvey.org/Workarounds:_Manip...ime_using_Javascript

Else, maybe you can try with www.limesurvey.org/fr/?option=com_sobipr...textadapt&Itemid=729 and an updated version of unique ? something like unique(self.sq_choice,self.sq_other).

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.
  • mikezhangsky
  • mikezhangsky's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 5 months ago #158827 by mikezhangsky
Replied by mikezhangsky on topic Can i choose answer like this ?
thank you very much

arraytextadap :it is very good Extensions ,i have already use it .
The topic has been locked.
  • mikezhangsky
  • mikezhangsky's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 5 months ago #158941 by mikezhangsky
Replied by mikezhangsky on topic Can i choose answer like this ?
Question validation equation : unique(self) and count(self)==max(self)

when i write this equation in the question, then the question display.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #158957 by DenisChenu
Replied by DenisChenu on topic Can i choose answer like this ?
?
1: I say in Question validation equation : it's not for display or not the question …
2: I think you can use unique with sq_ to get the unique by column for the 1st column (the sq_choice if the first column is named choice).

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.
  • mikezhangsky
  • mikezhangsky's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 5 months ago #158959 by mikezhangsky
Replied by mikezhangsky on topic Can i choose answer like this ?
when i try like this :

set a array question Q1 with dropdown

y1 y2 y3 y4 y5

x1

x2

x3

i want the answer of x1 ,x2 ,x3 must be different . i find the example from your web ,and it said :unique(self)

i try Question validation equation like this :

unique(Q1_x1,Q1_x2,Q1_x3)

and i find the question Q1 will been not display ,and it was hided...
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #158965 by DenisChenu
Replied by DenisChenu on topic Can i choose answer like this ?
?????? Where did you put this equation ?

Else there are an error : Q1_x1 etc … didn't exist : you need to use
unique(Q1_x1_y1.NAOK,Q1_x3_y1.NAOK,Q1_x3_y1.NAOK).

See manual.limesurvey.org/Expression_Manager#Qcode_Variable_Naming / Array (Multi Flexi) part.

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.
  • mikezhangsky
  • mikezhangsky's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 5 months ago - 6 years 5 months ago #158967 by mikezhangsky
Replied by mikezhangsky on topic Can i choose answer like this ?
i set Question validation equation :

unique(unique_x1.NAOK, unique_x2.NAOK, unique_x3.NAOK)

but it dose not work.
Last edit: 6 years 5 months ago by mikezhangsky.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #158969 by DenisChenu
Replied by DenisChenu on topic Can i choose answer like this ?
You read ?
Code:
unique(Q1_x1_y1.NAOK,Q1_x3_y1.NAOK,Q1_x3_y1.NAOK)

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.
  • mikezhangsky
  • mikezhangsky's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 5 months ago #158971 by mikezhangsky
Replied by mikezhangsky on topic Can i choose answer like this ?
yes, when i use

unique(unique_x1_1.NAOK, unique_x1_2.NAOK, unique_x1_3.NAOK)

and check logic in survey ,it will get a error.

i have put the example survey in the Attachments file..
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose