Welcome to the LimeSurvey Community Forum

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

Filter of statistics

  • pabgarja
  • pabgarja's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago #135878 by pabgarja
Filter of statistics was created by pabgarja
Hello:
I'm trying to filter statistics by users, I mean, depending on the code of user, they will only see the results of their group (they are teachers). In this way, each survey has a code (in the first question as a plain text) and I'm modifying statistics page in order to filter by this user. In addition I have disabled the field to filter by user (first question):
Code:
filtro = $("[id='filterchoices']")
filtro.find("div>input[type='checkbox']").attr('checked','true')
filtro.find("div>input[type='checkbox']").attr('readonly','true')
 
tabla = $(filtro.find("[class='filtertable']"))
$(tabla.find("input[type='checkbox']")[0]).attr("checked","true")
$(tabla.find("input[type='checkbox']")[0]).attr("readonly","true")
$(tabla.find("input[type='text']")[0]).attr("readonly","true")

but I need the code of this user who is connected at that moment to put it on the field.

Anyone could help me? Thanks a lot.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose