Check out the LimeSurvey source code on GitHub!

Adding tokens programmatically

More
5 years 9 months ago #59757 by jonoF
I'm working on an existing application that manages and tracks support issues for our clients. I'm looking to ask users to complete a survey after their issue is resolved.

The LimeSurvey token option looks like the kind of feature I need - users can only complete the survey once, and only on invitation. However, is it possible to add tokens automatically, i.e. via a call from the existing application? Manually adding user tokens after each issue is not really practical for the volumes we deal with.

Please Log in to join the conversation.

More
5 years 9 months ago #59809 by DenisChenu
You can create token on the fly with an external PHP script, this script redirect after to the good survey with the good token (and information from your system).

Some php dev but not so hard.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
The following user(s) said Thank You: tcb

Please Log in to join the conversation.

More
5 years 5 months ago #64741 by tcb
This is useful to know but can you tell us a bit more?

Is there any documentation on this?

Can you give us a snippet of PHP that would programatically add a new user to a minimal token table?

Thanks

Please Log in to join the conversation.

More
5 years 4 months ago #65282 by DenisChenu
Hello,

Maybe you can have a look to remote control source code :).
docs.limesurvey.org/RemoteControl

I'm not sure it actually work, but you find some interestiong code.

But :
1st : your tracker create a line in the LS token base ( sql insert).
2nd : you redirect the user to the link with the token.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form