Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Reservation number and customer name as parameters

Reservation number and customer name as parameters 2 years 11 months ago #99210

  • papacico
  • papacico's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 0
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: 2 years 11 months ago by papacico.
The administrator has disabled public write access.

Reservation number and customer name as parameters 2 years 11 months ago #99232

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9264
  • Thank you received: 1320
  • Karma: 383
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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Reservation number and customer name as parameters 2 years 11 months ago #99291

  • papacico
  • papacico's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 0
hello i posted a message yesterday but is gone now
Last Edit: 2 years 11 months ago by papacico.
The administrator has disabled public write access.

Reservation number and customer name as parameters 2 years 10 months ago #99372

  • papacico
  • papacico's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 0
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
The administrator has disabled public write access.

Reservation number and customer name as parameters 2 years 10 months ago #99398

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9264
  • Thank you received: 1320
  • Karma: 383
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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Reservation number and customer name as parameters 2 years 10 months ago #99403

  • papacico
  • papacico's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 0
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: 2 years 10 months ago by papacico.
The administrator has disabled public write access.

Reservation number and customer name as parameters 2 years 10 months ago #99465

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9264
  • Thank you received: 1320
  • Karma: 383
Did you try with {ATTRIBUTE_1}

What is your LS version AND build number ?
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
The following user(s) said Thank You: papacico

Reservation number and customer name as parameters 2 years 10 months ago #99490

  • papacico
  • papacico's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 0
Hi Denis, great! This is working just fine ! :)
The administrator has disabled public write access.

Reservation number and customer name as parameters 2 years 10 months ago #99514

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9264
  • Thank you received: 1320
  • Karma: 383
Think this must be reported as BUG.

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.371 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form