Welcome, Guest
Username: Password: Remember me

TOPIC: Expression Manager Help

Expression Manager Help 4 months 3 weeks ago #109727

  • dweisser
  • dweisser's Avatar
  • OFFLINE
  • Bronze Donor
  • Posts: 205
  • Thank you received: 5
  • Karma: 5
I need to know the count of how many subquestions were clicked in a Multiple choice question.
I need to store this value in a separate question.

I tried: {count(that.q1.NAOK)>0} and {sum(that.q2.NAOK)} this but I can't get a number. The multiple choice questions if clicked evaluate to "Y".

If I have seven subquestions and all seven are clicked, I want to be able to store and use the value "7" in another context.

Anyone have any ideas? Thanks,
David
The administrator has disabled public write access.

Expression Manager Help 4 months 3 weeks ago #109732

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1125
  • Thank you received: 259
  • Karma: 79
Sometimes simple is the best ;)

All options checked:
{count(that.q1)}

Count + tailor a message (e.g.: singular/plural):
{count(that.q1)} if(count(that.q1)<2,'checkbox checked','checkboxes checked')}

.NAOK suffix is unnecessary for always relevant questions; Obviously, you can add it to your expression if needed.
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Last Edit: 4 months 3 weeks ago by Ben_V.
The administrator has disabled public write access.

Expression Manager Help 4 months 3 weeks ago #109752

  • dweisser
  • dweisser's Avatar
  • OFFLINE
  • Bronze Donor
  • Posts: 205
  • Thank you received: 5
  • Karma: 5
That completely works. Oh - THANK YOU!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.193 seconds
Donation Image