I am using a Limesurvey with tokens and have Drupal Limesurvey sync set up to synchronize automatically when a Limesurvey response is completed.

Most of the time, this works as expected. However, occasionally a response has to be submitted several times on Limesurvey before it will automatically synchronize with Drupal.

I'm happy to do some troubleshooting if you can point me in the right direction.

Thanks.

Comments

jsibley created an issue. See original summary.

thedut’s picture

Hello jsibley,

Yes it's "normal" that automatic synchronization working inconsistently.
When the user fill the survey,

  1. he leaves the drupal site (even using the iframe) to the LimeSurvey site,
  2. fill the survey
  3. then go back to the Drupal site.

At this point, the LimeSurvey Sync module try to "guess" (with 3 distinct methods) if the answer that just goes back to the Drupal site is the one that the user has started. If the system succed, the synchronization is fired. This works to for anonymous users to.
More details of thoses methods in the ls_answ/ls_answ.back.inc file.
In a nutshell, depending on conditions, you can maximize the synchronization. For the best results you should set all thoses settings together :

  • Use LimeSurvey tokens
  • and on the LimeSurvey admin interface : "Show welcome screen?" should be set to No,
  • and "Automatically load URL when survey complete?" should be set to Yes,
  • and it should be a one page survey.
jsibley’s picture

Hello,

Since the dev version is not yet ready for production, is there any chance that you could add an rules action to this version (and if the same issue is likely to occur, at some point to the entity-based version) that would allow me to synchronize (just in case) when, for example, the user goes to a specific page.

Obviously, as long as there is an even, the site designer can design what should trigger the synchronize action.

Unfortunately, I don't have the experience to add this myself.

Thanks,

Jonathan Sibley

jsibley’s picture

I should also probably mention that I have the survey in Drupal configured to:

automatic and immediate redirection
Automatically overwrite the LimeSurvey end url into the LimeSurvey database, in order to reflect the above settings.
redirect the user to this specific page xxxx

Unfortunately, sometimes this synchronizes and adds the response, but sometimes it doesn't.

Thanks

thedut’s picture

Actually, in 7.x-1 and 7.x-2.x versions, If you simply save the answer (for example from rules or the user interface), the synchronization will be fired automatically.
I will probably include a specific rules action for synchronization in the future.

Unfortunately, sometimes this synchronizes and adds the response, but sometimes it doesn't.

The firing of the synchronization on coming back from LS to drupal is quite restrictive right now : If the system find more that one possible answer the synchronization will not occur. I could allow a less restrictive way as an option, synchronizing all possible answers, especially if we don't need to redirect the user to the right answer (your case).

thedut’s picture

Title: Automatic synchronization working inconsistently » Automatic synchronization on completing answer working inconsistently
Version: 7.x-1.7 » 7.x-1.8
Status: Active » Closed (won't fix)

I have redesigned the Synchronization process on coming back from LS to DP into the v7.x-3.x version. The Synchronization will always work for completed answers and there associated token into the v7.x-3.x version.