Welcome to the LimeSurvey Community Forum

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

Styling SURVEYURL link in email

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 day 2 hours ago - 1 day 2 hours ago #270673 by tammo
Styling SURVEYURL link in email was created by tammo
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.14.2
Own server or LimeSurvey hosting: Own
Survey theme/template: Own
==================
I am trying to style the {SURVEYURL} into a button.

In the survey template I use: 
<p><a href={SURVEYURL}  style='color: white; font-style: bold;background: red; padding: 20px; border-radius:5px;'>Click here! </a></p>

but in the receiving email I do not see a button, but:

examples.respondage.nl/index.php?r=surve...1&sid=xxxxxx&lang=nl style='color: white; font-style: bold;background: red; padding: 20px; border-radius:5px;'>Click here!

Any thoughts?

Thanks!


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Last edit: 1 day 2 hours ago by tammo.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 day 2 hours ago #270674 by tpartner
Replied by tpartner on topic Styling SURVEYURL link in email
Try wrapping {SURVEYURL} in quotes.

Code:
<p><a href="{SURVEYURL}"  style='color: white; font-style: bold;background: red; padding: 20px; border-radius:5px;'>Click here! </a></p>

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.

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
23 hours 30 minutes ago #270675 by tammo
Replied by tammo on topic Styling SURVEYURL link in email
Too bad. This did not work.

Thanks for taking the time, though... :-)

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
23 hours 8 minutes ago - 23 hours 7 minutes ago #270676 by Joffm
Replied by Joffm on topic Styling SURVEYURL link in email
Hi,
{SURVEYURL} already contains the <a href=... part

<p><a href="<a href=" www.myserver.de/lime6/index.php/772936?token=111&lang=de "> www.myserver.de/lime6/

Therefore you have to use

<p><a href="@@SURVEYURL@@"  style='color: white; font-style: bold;background: yellow; padding: 20px; border-radius:5px;'>Click here! </a></p>

See here:
[url] www.limesurvey.org/manual/Email_templates#Email_Placeholders [/url]

@@SURVEYURL@@
The URL to start the survey - this is the barebone link. Use this if you want to integrate the link in your custom HTML elements somewhere (available in v1.90 and later)

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 23 hours 7 minutes ago by Joffm.
The following user(s) said Thank You: tpartner

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
21 hours 49 minutes ago - 21 hours 49 minutes ago #270677 by tammo
Replied by tammo on topic Styling SURVEYURL link in email
Right you are!

This works. Now I have to find out more about inline styling, because the background, fontcolor and font-style seems to work, but padding does not. Or maybe I should try to use a picture.

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Last edit: 21 hours 49 minutes ago by tammo.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
20 hours 23 minutes ago #270678 by Joffm
Replied by Joffm on topic Styling SURVEYURL link in email
Hi,
here a few examples to show that padding works imo (Mail client: Thunderbird):


1:
<a href="@@SURVEYURL@@"  style='text-decoration:none; font-style: bold;color: white;background: maroon; padding: 20px; padding-top:50px;border-radius:5px;'>Click here 1! </a>

2.
<a href="@@SURVEYURL@@" style='text-decoration:none; font-style: bold;color: red;background: lime; padding: 20px; padding-right:50px;border-radius:5px;'>Click here 2! </a>

3.
<a href="@@SURVEYURL@@" style='text-decoration:none;border:1px solid red;background:#ddd;color:#333;padding: 5px 10px; border-radius:50%;'>Click here 3! </a>

4.
<a href="@@SURVEYURL@@"   style='text-decoration:none; font-style: bold;color: blue;background: yellow; padding: 15px 25px; border-radius:10px;'>Click here 4! </a>

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: tammo

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
5 hours 54 minutes ago #270679 by tammo
Replied by tammo on topic Styling SURVEYURL link in email
Yes, this depends on the mail client that I use (Outlook) where it looks rubbish. Maybe there is a setting, but I cannot expect that my respondents know this.
I will put it under a picture.

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose