Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
thedut CreditAttribution: thedut commentedHello jsibley,
Yes it's "normal" that automatic synchronization working inconsistently.
When the user fill the survey,
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 :
Comment #3
jsibley CreditAttribution: jsibley commentedHello,
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
Comment #4
jsibley CreditAttribution: jsibley commentedI 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
Comment #5
thedut CreditAttribution: thedut commentedActually, 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.
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).
Comment #6
thedut CreditAttribution: thedut commentedI 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.