Welcome to the LimeSurvey Community Forum

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

Total Awareness - Auto punch responses

More
5 years 1 month ago #203027 by scene143
Hi All,



I have Spont Q1 (Multi-Select option) & Aided Q2 (Multi-Select Option) I want to create Total Awareness in this data.

Can somebody help how to create the same anyway i am going to hide this Total aware column from the survey.

I will use this Total Aware column in filter for few more following question.
The topic has been locked.
More
5 years 1 month ago #203031 by Joffm
1. Create a hidden multiple question (MT= multiple total) with the same codes of spontaneous (Q1) and aided (Q2).
Aided will habe the array exclusion filter of Q1
2. Create a question of type "equation" where you set the items.
{MT_SQ001=if(Q1_SQ001=="Y" or Q2_SQ001=="Y","Y","")}
{MT_SQ002=if(Q1_SQ002=="Y" or Q2_SQ002=="Y","Y","")}
{MT_SQ003=if(Q1_SQ003=="Y" or Q2_SQ003=="Y","Y","")}
...

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
5 years 1 month ago - 5 years 1 month ago #203037 by scene143
Thank for your help...

I tried this and i got what I want :-) but MT question is appearing in the survey , i tried to hide this then my Q4 is not appearing in the survey.

For your reference, I attached that file It would be great if you help me on this.

(Just a summary what i did)

1. I created Q1 & Q2 multichoice with same codes ....

2. Created MT field for Auto punch Q1/Q2 values.

3. Created Equation in question type - field name Dum ..

4. I included MT in the Array for Q4 .

If i preview the survey MT is appearing but i want to hide the same.

Do we have any option to hide
Last edit: 5 years 1 month ago by scene143. Reason: still not able to get
The topic has been locked.
More
5 years 1 month ago #203044 by tpartner
Use a CSS class "hidden".

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 1 month ago #203049 by scene143
Thank you for the reply .

I tried that too but still MT is appearing in the survey (I have given CSS "hidden"
in CSS class(es) field)

Can you please help me on this. attached the survey FYR.
The topic has been locked.
More
5 years 1 month ago #203050 by scene143
Attachement
The topic has been locked.
More
5 years 1 month ago #203060 by scene143
Sir have one more query sorry :-)

i tried this syntax in "CENTRES=="2" OR CENTRES=="4"" in editsubquestion > relevence equation column

But its not coming correct can you please help me to how to give 2 centres together in editsubquestion>relevance equation column
The topic has been locked.
More
5 years 1 month ago #203063 by tpartner
What LimeSurvey version are you using?

I see no survey attachment, only a question.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 1 month ago #203069 by scene143
Hi,

I am using Version 3.22.25.

Attaching the file for "MT" appearing issue

Regards
Sara
The topic has been locked.
More
5 years 1 month ago #203077 by tpartner
Two problems...

1) Q4 needs to be in a separate group. Joffm's equations only get fired on page load and submit.

2) You have the wrong CSS class name. I said "hidden", not "CSS "hidden"".



Sample survey attached:

File Attachment:

File Name: limesurvey...9(1).lss
File Size:27.86 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 1 month ago #203080 by scene143
Thank you very much :-)
The topic has been locked.
More
5 years 1 month ago #203086 by Joffm
Hi, Sara,
what I wrote was the answer to "array filter".
If the question Q4 is "multiple" you may forget everything about hidden questions and equations.
In this case use "subquestion relevance"
Q4_SQ001: "Q1_SQ001=="Y" or Q2_SQ001=="Y"
...

My approach is only necessary if the Q4 question is "single", as it is "Q4 Favourite". So you expect a single answer.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
5 years 1 month ago #203090 by tpartner
Good point.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 1 month ago #203123 by scene143
Hi,

Thank you for your reply,

I tried Subquestion relevance but it's not working fine. I think its some formula error.

Can you please help me with this.

FYR attached the survey


Regards
Sara
The topic has been locked.
More
5 years 1 month ago - 5 years 1 month ago #203126 by Joffm
You misunderstood this.
Q4_SQ001: "Q1_SQ001=="Y" or Q2_SQ001=="Y"

Meaning:
In subquestion SQ001 of question Q4 set the subquestion relevance "Q1_SQ001=="Y" or Q2_SQ001=="Y".

In my opinion you should have been aware of your wrong syntax if you studied the sample surveys.
www.limesurvey.org/manual/ExpressionScript_sample_surveys .
I really recommend this.

I corrected your syntax.

And I added a NAOK to the subquestion relevance equations. So it is not necessary to have the question on a different page.


File Attachment:

File Name: limesurvey... (1).lss
File Size:23.04 KB


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 years 1 month ago by Joffm.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose