Check out the LimeSurvey source code on GitHub!

Reservation number and customer name as parameters

More
3 years 5 months ago - 3 years 5 months ago #99210 by papacico
Hello everybody,

i run a travel agency and i'd like to send survey invitations to our customers after they came back from holiday. I need to have visisible our customer's name and reservation number in the survey result for each customer who applyes the survey, i tryed to export a csv file from our database with this fields : firstname, lastname, email, reservation_number but the reservation_numbers is not showing in the token management
can somebody help please? Thank you in advance.
Last Edit: 3 years 5 months ago by papacico.

Please Log in to join the conversation.

More
3 years 5 months ago #99232 by DenisChenu
Hi,

Add an new attribute, and use:
- attribute_1 in your CSV,
- {TOKEN:ATTRIBUTE_1} in survey (See Expression Manager).

Denis

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.

More
3 years 5 months ago - 3 years 5 months ago #99291 by papacico
hello i posted a message yesterday but is gone now
Last Edit: 3 years 5 months ago by papacico.

Please Log in to join the conversation.

More
3 years 5 months ago #99372 by papacico
hello Denis,

as you can see the attribute_1 is not returning the value from the token table what am i doing wrong?

Thank you in advance
Attachments:

Please Log in to join the conversation.

More
3 years 5 months ago #99398 by DenisChenu
You have to have a "TOKEN table".

And sometimes, you need to renew EM $_SESSION : click on "Lime Expression Manager test page".

And think to you have to use
{TOKEN:ATTRIBUTE_1} and not {TOKEN:attribute_1}

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.

More
3 years 5 months ago - 3 years 5 months ago #99403 by papacico
hello Denis, thank you for your reply,

i do have a token tabel see the attachement

a tryed both {TOKEN:attribute_1} and {TOKEN:ATTRIBUTE_1} but none is working
Attachments:
Last Edit: 3 years 5 months ago by papacico.

Please Log in to join the conversation.

More
3 years 5 months ago #99465 by DenisChenu
Did you try with {ATTRIBUTE_1}

What is your LS version AND build number ?

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: papacico

Please Log in to join the conversation.

More
3 years 5 months ago #99490 by papacico
Hi Denis, great! This is working just fine ! :)

Please Log in to join the conversation.

More
3 years 5 months ago #99514 by DenisChenu
Think this must be reported as BUG.

Denis

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