Adding answers to SURVEYURL in Email Template

More
4 years 1 month ago #94247 by wiz561
wiz561 created the topic: Adding answers to SURVEYURL in Email Template
Hi!

I'm trying to modify the email template so I can add answers to a question, but keep banging my head against the wall. I know this is possible, I just don't know how to do it. In the E-Mail template I have this...

{SURVEYURL}&442976X15X310={ATTRIBUTE_3}&442976X15X311={ATTRIBUTE_1}

But when I receive the URL, it does not add anything additional to the URL HREF tag and only displays after the & as text. I've tried a number of things, and can't get it to work. I tried the 'panel integration' space, but it seems like certain subquestions are in there and not everything.

Does anybody happen to know how I can modify the SURVEYURL parameter without having to write my own script to send the mail out?

Thanks!

Please Log in to join the conversation.

More
4 years 1 month ago #94267 by tpartner
tpartner replied the topic: Adding answers to SURVEYURL in Email Template
Try this:
{SURVEYURL}?442976X15X310={ATTRIBUTE_3}&442976X15X311={ATTRIBUTE_1}

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
4 years 1 month ago #94276 by wiz561
wiz561 replied the topic: Adding answers to SURVEYURL in Email Template
Thank you for the response, but unfortunately, it didn't work....

In my template I tried this...

{SURVEYURL}?442976X15X310={ATTRIBUTE_3}&442976X15X311={ATTRIBUTE_1}

But when I receive the email for the survey, I get this link...

http://surveys.<foo>/limesurvey/index.php?r=survey/index/sid/442976/token/txndjt4mbhztjh3/lang/en

and the text part looks like this... I tried to format it but it turns out OWA does some strange url encode for it.

http://surveys.<foo>/limesurvey/index.php?r=survey/index/sid/442976/token/txndjt4mbhztjh3/lang/en?442976X15X310=CRB&442976X15X311=Site

I would have thought that LimeSurvey would just tack the variables onto the surveyurl, but it isn't. :(

Thanks!

Please Log in to join the conversation.

More
4 years 1 month ago - 4 years 1 month ago #94310 by DenisChenu
DenisChenu replied the topic: Adding answers to SURVEYURL in Email Template
Hello,
{SURVEYURL}&442976X15X310={ATTRIBUTE_3}&442976X15X311={ATTRIBUTE_1}
For survey ling
(change the ? by &)

And for EMAIL:
<a href="%%SURVEYURL%%&442976X15X310={ATTRIBUTE_3}&442976X15X311={ATTRIBUTE_1}">%%SURVEYURL%%&442976X15X310={ATTRIBUTE_3}&442976X15X311={ATTRIBUTE_1}</a>

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 .
Last Edit: 4 years 1 month ago by DenisChenu.

Please Log in to join the conversation.

More
4 years 1 month ago #94326 by wiz561
wiz561 replied the topic: Adding answers to SURVEYURL in Email Template
Thanks for the response...

I tried as you said, and it still does not work. In the email template of the web page, I did 'view source' and put this in...

<a href="%%SURVEYURL%%&442976X15X310={ATTRIBUTE_3}&442976X15X311={ATTRIBUTE_1}">%%SURVEYURL%%&442976X15X310={ATTRIBUTE_3}&442976X15X311={ATTRIBUTE_1}</a><br />

In the mail, it shows this...

%%SURVEYURL%%&442976X15X310=CRB&442976X15X311=Site, and Outlook blocks the URL.

I also tried changing the ? to & and same symptom as before...

http://surveys.<foo>/limesurvey/index.php?r=survey/index/sid/442976/token/txndjt4mbhztjh3/lang/en&442976X15X310=CRB&442976X15X311=Site

is the link that it looks like and it goes to the URL that's everything up to the &.

Please Log in to join the conversation.

More
3 years 2 months ago #104260 by malexan
malexan replied the topic: Adding answers to SURVEYURL in Email Template
New feature of 1.90:

+New feature: Use @@SURVEYURL@@ in invitation/reminder emails to be able to use it inside an <a href > link (cschmitz)

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now