Welcome to the LimeSurvey Community Forum

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

Display results of a Array (Nums) (Checkbox) in a basic/detailed admin notificat

  • epauldc29
  • epauldc29's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #192290 by epauldc29
How would I display the results of an Array (Numbers) with checkboxes (see below) in the basic or detailed Admin Notification email that comes when a survey is completed and submitted?

The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #192292 by Joffm
Hi,
the question is: How do you want to display it?
As you probably know, in an array(numbers) the value of a selected cell is saved as "1".
If you select "Speed" and "Design" you will see in the answer table something like (depends on your codes of subquestions)
Q1_SQ001_SQ001: 1
Q1_SQ001_SQ002: 1
Q1_SQ001_SQ003:

Now use Expression Manager to display what you like.
1. You selected:
Speed: {if(Q1_SQ001_SQ001==1,"X","")}
Design: {if(Q1_SQ001_SQ002==1,"X","")}
Accuracy: {if(Q1_SQ001_SQ003==1,"X","")}

2a. {if(Q1_SQ001_SQ001==1,"Speed was selected","")}
2b. Speed was {if(Q1_SQ001_SQ001==1,""," not")} selected

3. These items were selected: {list(if(Q1_SQ001_SQ001==1,"Speed",""),if(Q1_SQ001_SQ002==1,"Design",""),if(Q1_SQ001_SQ003==1,"Accuracy",""))}

and many more.

Joffm

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

Lime-years ahead

Online-surveys for every purse and purpose