Welcome to the LimeSurvey Community Forum

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

force user to answer

  • mana
  • mana's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 8 months ago #139828 by mana
force user to answer was created by mana
HI
How can i force user to answer all cell a row in the table ?
in array number or text
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #139831 by Joffm
Replied by Joffm on topic force user to answer
Hi, mana,
what about setting the question "mandatory"?
Then the respondent has to answer ALL cells, all rows, all columns.

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • mana
  • mana's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 8 months ago #139999 by mana
Replied by mana on topic force user to answer
no
Only 1 row of the table .
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago - 7 years 8 months ago #140002 by Joffm
Replied by Joffm on topic force user to answer
Hi, mana,
well, I have a solution, if it is the first row.

create a group with two question of matrix type
1. question (mandatory): only the mandatory row.
2. question (not mandatory): all other rows.
Do not enter subquestiion text in X-scale

Remember to set the same value of "subquestion width" in advanced settings.

in the question text of question 2 add:
Code:
<style>
#question290 .question-title-container, #question290 .questionvalidcontainer {
display:none;
}
#question290 .answer-container {
    padding-top:0;
  }
</style>
The "290" if the QID of this second question.
You can find out in "Survey logic file".

I know, setting the styling is better by JS - mainly getting the QID -, but I am not so familiar with that.
Anyway, you will get something like the screenshots.

I hope I could help a little bit.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 8 months ago by Joffm. Reason: Ergänzung
The following user(s) said Thank You: mana
The topic has been locked.
  • mana
  • mana's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 8 months ago #140004 by mana
Replied by mana on topic force user to answer
Dear Joffm

Can you send me LSS file ?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago - 7 years 8 months ago #140005 by Joffm
Replied by Joffm on topic force user to answer
Hi, mana,

first I want to add something:
if you add in the 1. question:
Code:
<style>
#question285.question-container {
margin-bottom:0;
}
</style>
then there is no gap between.
Again the 285 is the QID of the upper question.

Well, here you get the QID, too.
In the "Question Summary" it is displayed.

And here the *.lss.

Kind regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 8 months ago by Joffm.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #140008 by tpartner
Replied by tpartner on topic force user to answer
Have you tried forcing the answers with the whole question validation equation?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #140009 by Joffm
Replied by Joffm on topic force user to answer
Hi, mana,
of course, Tony is absolutely right.

See sample survey, especially "Advanced settings" of question

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: tpartner
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #140010 by tpartner
Replied by tpartner on topic force user to answer
Thanks Joffm. I'm on my phone this weekend so couldn't supply an example.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose