placeholder in end text

More
4 months 1 week ago - 4 months 1 week ago #171092 by jucajuca
jucajuca created the topic: placeholder in end text
Can I use the email-placeholders also in survey elements such as the end message?


I want to create a link like this one:

<p><a href=" www.facebook.com/sharer/sharer.php?u={SURVEYURL }">Facebook</a></p>


Will this work?

At the moment I get the following output:


<p><a href=" www.facebook.com/sharer/sharer.php?u=<span class='em-expression em-haveerror'><span title='Undefined variable' class='em-error'><span title='Undefined variable' class='em-var em-var-error' >SURVEYURL</span></span></span>">Facebook</a></p>


*****
manual.limesurvey.org/Email_templates
Last Edit: 4 months 1 week ago by jucajuca.

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #171099 by DenisChenu
DenisChenu replied the topic: placeholder in end text
SURVEYURL is a token email placeholder …

Then : not this one.

But all other : yes

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 or Create an account to join the conversation.

More
4 months 1 week ago #171126 by tpartner
tpartner replied the topic: placeholder in end text
Why not simply hard-code it? It's not like the survey URL is dynamic.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #171127 by DenisChenu
DenisChenu replied the topic: placeholder in end text

tpartner wrote: Why not simply hard-code it? It's not like the survey URL is dynamic.

It can be inresting to have it in some condition :
1. The survey can be accessed via different url
2. You make your survey on a server for a client and you import the lss after
3. You make a copy of this survey (but here : {SID} is OK).

It's like {SURVEYRESOURCESURL} : no need to update when move from server to server :)

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 or Create an account to join the conversation.

More
4 months 1 week ago #171128 by tpartner
tpartner replied the topic: placeholder in end text
A little JS to manipulate the href attribute could fix it. :)

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!