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.