Welcome to the LimeSurvey Community Forum

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

Exclusive option in Array (Numbers) with checkboxes

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago #242835 by Joffm
Hi, where is the lss export.

And "it doen't work" is not the best description.
What doesn't work?
Can you proceed even if you selected options in three columns.
Why didn't you enter a validation tip?

What I see in your screenshot:
1. You set the question to "mandatory".
You never can fulfill this requirement if you allow maximal 6 answers. It's less than the number of rows.

2. If you set the minimum number of answers to 4, your "wrong" validation of the exclusive row is not necessary.
The respondent can't select more than 2 "None of the above" (because only two columns can be filled)
But he has to select something else (at least in one column) to fulfill the minimum of 4 answers.

3. "+" is an arithmetic operator, not a logical operator. I am sure you do not want to summarize this.
Logical operators are "AND" or "&&".
See the manual [url] www.limesurvey.org/manual/ExpressionScri...ntation/en#Operators [/url]

I'm not sure why do you include the number 7 there:
"!is_empty(Q1_ma_7)".

As I wrote "or whatever code you used.".
In your previous lss I now see that it is "NSNC". So it should be "!is_empty(Q1_NSNC_ma)"

More only after you send the actual lss export.

Joffm
 

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

Please Log in to join the conversation.

  • Episteme Investigación e Intervención Social
  • Episteme Investigación e Intervención Social's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 5 months ago #242917 by Episteme Investigación e Intervención Social
Replied by Episteme Investigación e Intervención Social on topic Exclusive option in Array (Numbers) with checkboxes
Hi Joffm,
What I need is an Array where participants can respond to max. 2 columns out of 4:
- Mother - Father - 2nd Mother -2nd Father
Since people usually just have one or two parents (one father and one mother, two mothers or two fathers). When I said it doesn't work I meant the selection of just two columns, people could select checkboxes in all four columns. 
And we would like to know the ocupation of each one (rows), that ocupation can be one or two checkboxes or even more, that's why I put a max of 6, but I deleted the minimum now as you said. The last row is exclusive between rows because it's "No response" and I put the code tpartner said above in the HTML. 
I send you the .lss
Thank you again.
Best, 
 

File Attachment:

File Name: Evaluacion...es_2.lss
File Size:216 KB

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago #242919 by Joffm
Hi,
1. your question can't be "mandatory" because you do not allow all rows to be filled (maximum 6)




2. Now (not mandatory)
As long as you do not enter a validation tip you will not see anything until you want to proceed.
 
But here the modal appears.


But with a validation tip you immediately see the error message
 

So, I do not see any issue.

Joffm
 

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

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago - 1 year 5 months ago #242921 by Joffm
I removed something, because I obviously misunderstood.

On the other side:
Why do you display 4 columns if you only use and allow two columns to be filled?
Why don't you ask before about the situation: Is it padre/madre, padre/padre or madre/madre?

Then you display only two columns with the correct headers which you taylor with an IF statement.

It is really less confusing for  the respondents

Like this
 

 

Or you ask the composition with a multiple question and use the plugin "hideEmptyColumn" to display the two relevant columns.

But, of course, up to you. It is your survey design.

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 year 5 months ago by Joffm.

Please Log in to join the conversation.

  • Episteme Investigación e Intervención Social
  • Episteme Investigación e Intervención Social's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 5 months ago - 1 year 5 months ago #242930 by Episteme Investigación e Intervención Social
Replied by Episteme Investigación e Intervención Social on topic Exclusive option in Array (Numbers) with checkboxes
Hi Joffm,
Thanks for clarifying this, it was very helpful. It works perfectly and easier!
Last edit: 1 year 5 months ago by Episteme Investigación e Intervención Social.

Please Log in to join the conversation.

  • Episteme Investigación e Intervención Social
  • Episteme Investigación e Intervención Social's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 5 months ago #242931 by Episteme Investigación e Intervención Social
Replied by Episteme Investigación e Intervención Social on topic Exclusive option in Array (Numbers) with checkboxes
Can you show me the codes for the first question: "compo" for each row? or send me the .lss that you have done? I would like to add: madre o padre in the composition question.
Thank you very much

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose