Is there anyway to identify the Drupal user who gave responses to a survey? I'm not finding the documentation that covers this.

Comments

thedut’s picture

Status: Closed (works as designed) » Active

Hello swamiman,

Yes, it does exist, you can identify the Drupal user who gave responses to a survey :
- under the LimeSurvey admin interface, create a token table (token management tab) if it does not already exist,
- and under the survey node options tab, check Fill the token table of the LimeSurvey database with corresponding usernames and emails (uncheck by default) :
The Limesurvey token table will store the corresponding drupal username and email for each new answer.

dustinrwh’s picture

Thanks for the quick response (swamiman and I are working on the same project, by the way). However, we are still having issues. When I try to save the setting: Fill the token table of the LimeSurvey database with corresponding usernames and emails, I get the following error: Only surveys with token-based response persistence enabled can export users informations

Not sure why I can't save the settings. Any ideas?

dustinrwh’s picture

We figured it out. We had to go into LimeSurvey and find the setting "token-based response persistence" and enable that. We just didn't know what that meant.

Thanks so much!

Voice-Brand-Agency’s picture

Hello dustinrwh,

I was exactly looking for the same solution and saw your post, great. It worked for me too.

Cool
Voice Brand Agency

dustinrwh’s picture

Glad it helped :)

thedut’s picture

Status: Active » Closed (works as designed)

"token-based response persistence"

it means that the LimeSurvey software is going to preserve the association between a token and an answer ID.
That why if you want to identify a specific user (accessing to the survey form thanks to a unique token), you should enable it.
I close this post (works as designed).

abato’s picture

Sorry to ask this question here - but don't know where else to ask:

Can I use this module to send survey invitations to a subset of my registered users? or is the integration mostly about aesthetics?

Sincerely

thedut’s picture

Hi abato,

Yes, you can send a survey invitation to a subset of your registered users :

  • Create a role and set it for the subset of your register users,
  • Create a survey from your LimeSurvey admin interface with token-based response persistence enabled,
  • Set an end date for this survey if you want to limit the duration for filling the survey
  • Import this survey into drupal. Set the options Fill the token table of the LimeSurvey database with corresponding usernames and emails in order to identify each users.
  • On the Drupal permission page, allow that role to create new answer of that survey (and disallow others roles if you want that only those users can proceed to the survey).
  • Install the Mass Contact custom module,
  • Thanks to Mass contact, send a email to the subset of registred users (identified by the defined role), asking them to fill the survey, adding the link to create the survey (node/add/the-imported-survey). Don't care about the LimeSurvey Invitation table, the token invitation will be automatically generated when a user will proceed to the survey.
thedut’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

reset from 'active' to 'Closed (works as designed)' : it seems to be an issue of the Drupal.org D7 upgrade process.

Chetan Sharma’s picture

After enable "token-based response persistence". Drupal user or admin is not able to access the survey. What can be the solution for the same??

thedut’s picture

Hello Chetan Sharma,

Just set the appropriate permissions on the Drupal permission page (Admin > People > Permissions or http://example.com/admin/people/permissions).