Hi.

At the moment Limesurvey Sync creates a new token every time a user fills out a survey. It would be great if you could add a feature that first checks to see if there is a premade token in Lime Survey. I guess the best way would be to compare the email in drupal user database with the token table in lime. The main reason for this request is that without such a feature you can't use token specific attributes and fields. It would be even better if you could also add a feature that only allows a user to enter a survey if there is a premade token. I guess this feature should also check the token uses left field so that a user could only enter a new survey if there are uses left.

A different way to solve this would be if the limesurvey sync could add information to the token during creation. Like First Name, Last Name, Uses Left and token attributes. Even if you do it this way it would still require some way to restrict how many times a user could enter a survey.

Thanks for all your great work!

Comments

Status:Postponed» Active

Hi,

This is an interesting thread about requested feature on the LimeSurvey Sync module.
However, some features are already availables :

if the limesurvey sync could add information to the token during creation. Like First Name, Last Name, Uses Left and token attributes.

If you check on the survey tab options page "Fill the token table of the LimeSurvey database with corresponding usernames and emails", the created token will contain

  • the drupal username into the LimeSurvey field Last Name
  • and the Drupal user mail into the LimeSurvey field email.
  • The limeSurvey field "First Name" will be empty
  • and the Uses Left field will be set to 1.

a feature that only allows a user to enter a survey if there is a premade token

This is already available : on the LimeSurvey admin interface, set your survey to "switch to closed-access mode" and don't create tokens from the LimeSurvey admin interface : the survey will be available only from your drupal site, with the auto-generate token. Read below for restricting access depending on specific attribute values (not available yet).

In order to allow a user to edit a survey from the Drupal site, disctinct answers (from a same user and a same survey) should have distinct tokens (1 answer = 1 unique token). That why premade tokens is not the right way.

some way to restrict how many times a user could enter a survey

The right way should be to restrict how many new answer nodes a user may create. The Node Limit custom module can already do that (I have not tested it but it should work).

As a new feature, it could be interesting to create cck Fields for answer nodes : the drupal site would import thoses values into attribute colomns on the LimeSurvey token table.
Then it would be possible to create rules (using the Rules custom module) allowing to create a new answer only if the attribute value match an expected value.

Status:Active» Postponed

Status:Active» Postponed

Sounds like a great idea. I'll have to try out the nodes module. It would however be great if you could "map" more fields in drupal that could be passed to lime. For instance custom fields for First name, Last name and token attributes.

On the other hand lime has a great system for passing out tokens and keeping track of reminders and it would be nice if you could use it by doing it the other way around. That is mapping drupal user email to the a premade token database.

Rules module would also be great but I guess that takes alot more work.

I really love your module and for god sake don't make it into SurveyPress but there are still a few simple features that you could "steal" from that plugin..... ;)

I'm glad you enjoy this module.
IHO, this is the best Drupal survey module ever ! ;)

It would however be great if you could "map" more fields in drupal that could be passed to lime. For instance custom fields for First name, Last name and token attributes.

Yes, it would.
I guess it is an advanced feature, that would only interest few users. I may implement it but it not my priory task.
I may work on that idea within monthes.

Version:7.x-1.0» 7.x-1.3
Assigned:Unassigned» arellani
Category:feature» support
Status:Postponed» Active

Hello

I select in survey tab options page "Fill the token table of the LimeSurvey database with corresponding usernames and emails", created token will contain:
the drupal username into the LimeSurvey field Last Name
and the Drupal user mail into the LimeSurvey field email.

Works Perfect! So...
I have in a User Profile some fields with "Token-value" already like Organization, Enterprice, telephone, Directions...
Is there some way to pre-fill this tokens in to the Lime survey field? Just like username or email..

Thanks for all your great work!

Version:7.x-1.3» 7.x-1.5
Assigned:arellani» Unassigned
Category:support» feature
Status:Active» Postponed

Hello arellani,

You are asking for a feature request.
I may implement it but it is not my priority task.
I am working right now on the LimeSurvey Sync 7.x-2.x version, then I will try to fix another issue, and then I may start to fix this one.
This request is postponed (within several monthes).

Title:Premade tokensField on View to access to answer the survey

Hello thedut

I already have Syncronized My Survey (On Limesurvey Site) with my Drupal Site.

I have a Content Type "Survey FCEX" and his Content Type for his answers "Answers Survey FCEX"".

So, I have one views with Content Type = "Survey FCEX"
I can not find the way or the field i have to add on the view, for my users sites (not admin) can add answers to this survey.

Field Title goes to the Survey edit (like an admin) What I have to do?

Thank you for your support.

Title:Field on View to access to answer the surveyPremade tokens

@arellani :

The issue system does not work that way.
Create a new issue going to https://drupal.org/node/add/project-issue/limesurvey_sync
Then I wil answer to your question.

[EDIT : answer HERE].

There is an interesting approch for premade tokens : the drupal sandbox project LimeSurvey Integeration (and its tutorial).
This module synchronize the Drupal users with the LimeSurvey central participant panel. You can then add token invitations from the central participant panel.
When synchronizing the Drupal users with the LimeSurvey central participant panel you can decide which fields to use as source for First name, Lastname, etc...
I may add such feature into the LimeSurvey Sync module in the future.