Welcome, Guest
Username: Password: Remember me

TOPIC: Show a question depending on the number of previous checkmarks

Show a question depending on the number of previous checkmarks 3 years 4 months ago #58863

  • thomasw
  • thomasw's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
I have a questions with checkmarks (many answers possible).
In the next question I would like to ask whether the answers should be considered as AND or OR choices. However, this question is only required if the user chose more than one answer with checkmarks.

Is it possible to show a question depending on the number of checkmarks checked in the previous question?

Example (a little bit stupid, but hopefully you get the clue):
Q1: What do you like?
[x] tea
[x] milk
[ ] sugar
Q2: You have chosen multiple answers. Do you want those things separate or combined?
(x) separate
( ) combined
Separate then means: I like tea and I like milk but I dont like tea with milk. Combined means: I like tea with milk.
So Q2 should only show up in case more than one selection was made in Q1.
The administrator has disabled public write access.

Re: Show a question depending on the number of previous checkmarks 3 years 4 months ago #58911

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4118
  • Thank you received: 760
  • Karma: 346
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Show a question depending on the number of previous checkmarks 3 years 4 months ago #58961

  • thomasw
  • thomasw's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Thank you. Looks exactly what I need.
However my JavaScript always gets replaced by
<sc><x>ript ...
and therefore does not work well. Any hints?
The administrator has disabled public write access.

Re: Show a question depending on the number of previous checkmarks 3 years 4 months ago #58963

  • thomasw
  • thomasw's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Ok, got it. It's in global settings, security, filter for XSS.
Setting it to "no" helps.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.144 seconds
Donation Image