Welcome to the LimeSurvey Community Forum

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

Translate Replacement Fields to Hyperlinks

  • lsmith20
  • lsmith20's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #112295 by lsmith20
Greetings,

Is there a way to translate a Replacement Field to html? My survey is tokened and my invitation email contains an image. I'd like participants to be able to click on the image and be directed to their unique survey. I tried <a href="{SURVEYURL}"> to no avail.

Appreciate any help from the experts!

Laura
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #112335 by tpartner
Replied by tpartner on topic Translate Replacement Fields to Hyperlinks
Try this:
Code:
<a href="@@SURVEYURL@@">

manual.limesurvey.org/Tokens#Email_placeholders


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • lsmith20
  • lsmith20's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago - 9 years 6 months ago #112346 by lsmith20
Replied by lsmith20 on topic Translate Replacement Fields to Hyperlinks
Thank you so much, it worked! I missed that in the manual, or perhaps didn't understand what it meant.

In my experimentation I also developed the following work around:
Code:
<a href="https://survey.example.edu/index.php/survey/index/sid/996312/token/{TOKEN}/lang/en">

But @@SURVEYURL@@ is much cleaner.

Thanks again.
Last edit: 9 years 6 months ago by DenisChenu. Reason: code
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #112393 by DenisChenu
Replied by DenisChenu on topic Translate Replacement Fields to Hyperlinks

lsmith20 wrote:

Code:
<a href="https://survey.example.edu/index.php/survey/index/sid/996312/token/{TOKEN}/lang/en">

I use this before for OPTOUTURL etc ...

ANd you can do
Code:
<a href="https://example.org/index.php/survey/index/sid/{SID}/token/{TOKEN}">
then no need to update the survey id when copying survey :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • lsmith20
  • lsmith20's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #112406 by lsmith20
Replied by lsmith20 on topic Translate Replacement Fields to Hyperlinks
Even better, thanks!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose