Welcome to the LimeSurvey Community Forum

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

How to use token attributes in expression manager when survey is set to anonymou

More
2 hours 33 minutes ago #273220 by vytautas.volungevicius
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.15.24
Own server or LimeSurvey hosting: LimeSurvey hosting
Survey theme/template:
==================
(Write here your question/remark)
Hello,

I was wondering if there is a way to use participant attributes to display questions and apply logic to questions when a survey is set to Anonymous?

Problem is that we have a survey where we pass different information for participants, like a list of people to evaluate, department names, positions and so on. 

Lets assume i have attributes:
ATTRIBUTE_1 : DepartmentName,
ATTRIBUTE_2: Manager1,
ATTRIBUTE_3: Manager2,
ATTRIBUTE_4: Employee1
ATTRIBUTE_5: Employee2
...

Some of the questions has attributes in them like "How would you evaluate department {TOKEN:ATTRIBUTE_1}"? 

Some of the questions have display condition only like if {TOKEN:ATTRIBUTE_5} is not null then display question. 

As you can imagine ATTRIBUTE_1 can be different for participants, and attributes 2..5 can also be different for every single participant. 

Based on quick look i would say that em_manager_helper.php needs a change at line 3983://'code' => $anonymized ? '' : $val,'code' => $val,
So that it would allow the use of attributes in question display and logic. 

Or if not maybe then there should be changed checklogic functionality so that in anonymous survey it would not show as correct. 


P.S. Also tried to set default values for questions answers from participant attributes and then use questions but it did not helped too.

Sincerely,
LimeSurvey user

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose