Translate Replacement Fields to Hyperlinks

More
3 years 3 months ago #112295 by lsmith20
lsmith20 created the topic: Translate Replacement Fields to Hyperlinks
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

Please Log in to join the conversation.

More
3 years 3 months ago #112335 by tpartner
tpartner replied the topic: Translate Replacement Fields to Hyperlinks
Try this:
<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.

Please Log in to join the conversation.

More
3 years 3 months ago - 3 years 3 months ago #112346 by lsmith20
lsmith20 replied the 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:
<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: 3 years 3 months ago by DenisChenu. Reason: code

Please Log in to join the conversation.

More
3 years 3 months ago #112393 by DenisChenu
DenisChenu replied the topic: Translate Replacement Fields to Hyperlinks

lsmith20 wrote:

<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
<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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 3 months ago #112406 by lsmith20
lsmith20 replied the topic: Translate Replacement Fields to Hyperlinks
Even better, thanks!

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!