Welcome to the LimeSurvey Community Forum

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

Auto Populate current login user in my survey during execution

  • Karthick6217
  • Karthick6217's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #187485 by Karthick6217
Hi Team,
In my survey, I have created a question to track logged in user later in my response. Currently this is created as short text box for user to manually enter their user ID.

Question:
Is it possible to automatically get logged-in user ID from their current session and auto populate the same in text box using js or expression manager solution?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #187490 by Joffm
Hi,
what do you mean by user ID?

You have access to the user's token (password) by {TOKEN:TOKEN}
and to his id in the answer table by {SAVEDID}

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Karthick6217
  • Karthick6217's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #187494 by Karthick6217
Hi Joffm,
we have unique user ID for each user and this user ID is used for LDAP Authentication. This user ID is login ID for all users. So while someone take the survey, is it possible to auto populate the loginID/userID from login session to a text box in questionaire?
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
4 years 8 months ago #187504 by gabrieljenik
Not sure if possible as login is not needed for answering. Still, if possible, a plugin would solve it. I am thinking a plugin similar to the ldap auth, but for questions

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #187515 by holch
I think there are two things mixed up here:

1. Survey creators/admins - Login into Limesurvey - Only necessary/available for Administrators that
2. Survey takers don't have a login, what comes closest to a login would be

Now if your survey takers are also admins, they might actually be logged into Limesurvey. However, it is not necessary to take the survey.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose