Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Adding participant attributes to an End URL

  • nadica123
  • nadica123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 months 5 days ago #266040 by nadica123
Please help us help you and fill where relevant:
LimeSurvey version: 6.3.4
Own server or LimeSurvey Cloud: own server
Survey theme/template: Fruity
==================
(Write here your question/remark)

Hello,

I was wondering is it possible to have the value of the email parameter from the participants table be appended to an end url? Something in the lines of: example.com/1111?token={TOKEN}&email={EMAIL }? 

If it is, can I then have two different end URLs being sent, for example I have an email question, and if the email is provided the end URL will be like this:  example.com/1111?token={TOKEN}&email={Qemail }
if not the end URL will be in this format:  example.com/1111?token={TOKEN}&email={EMAIL }

Thank you.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 5 days ago - 5 months 5 days ago #266041 by Joffm
Hi,
yes, it is exactly as you described.
IF there is no email, THEN ... ELSE ...
Here you use the IF-function
And it is advisable to put it into a question of type "equation" (eqMail)
{if(QMail=='',TOKEN:EMAIL,QMail)}

Then you only add this to your end-url
Code:
https://www.myserver/lime6/index.php/364177?lang=de&token={TOKEN:TOKEN}&email={eqMail}


 
 
 

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 months 5 days ago by Joffm.

Please Log in to join the conversation.

  • nadica123
  • nadica123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 months 5 days ago #266059 by nadica123
Replied by nadica123 on topic Adding participant attributes to an End URL
Hello,

Thank you for your answer, this seems to work, although I have one issue now, since the email question is a single choice where the email is written in the other field, since I have other options such as I don't have an email and refusal.

When I type the email in the field I get the -oth- in the email variable in the end URL instead of what was written in the field. Is there something I can write into the equation so it will return the value and not the code of the field?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 4 days ago #266065 by Joffm

When I type the email in the field I get the -oth- in the email variable

1. Read the manual.
[url] www.limesurvey.org/manual/ExpressionScri...code_variable_naming [/url]
2. Activate the survey, enter some data and have a look at the response table.
You will see, what you have to enter.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • nadica123
  • nadica123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 months 4 weeks ago #266134 by nadica123
Replied by nadica123 on topic Adding participant attributes to an End URL
Thank you, I managed to make it work!

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose