How to create a button in my email invitation to take participants to the survey instead of the link | XM Community
Skip to main content
Solved

How to create a button in my email invitation to take participants to the survey instead of the link


I would like to know if there is a way to embed a button in my invite to take my survey using the individual link functionality within the Qualtrics platform. I know we can insert a survey link, but I believe the email would look more polished if instead of the traditional blue underlined link text, I were able to have a button in its place. I tried a few lines of HTML code that in the preview platform seemed to be working but when it was sent to my test email the button did not show up and also did not link to a URL.

Best answer by MatthewM

I'm not an authority on HTML either, but I've been able to use the following code before to create this button:
image.png

 

<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td bgcolor="#0076be" class="cta_style" style="padding: 10px 15px; line-height: 20px; letter-spacing: 1px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; background-color: rgb(0, 118, 190);"><span style="line-height: 20px; font-weight: normal; display: inline-block;"><a href="${l://SurveyURL}​" style="color: rgb(255, 255, 255); line-height: 20px; display: inline-block;" target="_blank">Begin the Survey</a></span></td>
		</tr>
	</tbody>
</table>

 

 

View original

16 replies

MatthewM
Level 6 ●●●●●●
Forum|alt.badge.img+30
  • Level 6 ●●●●●●
  • 1069 replies
  • January 11, 2021

Hi npearce15 ,
Yes, it is possible to use HTML to insert a button in the email that links to a survey. When you tried doing this, did you insert the html into the message after clicking the Source icon (see below), or did you enter it in the same editor window where the message is composed?

image.png


  • Author
  • Level 1 ●
  • 2 replies
  • January 11, 2021

Hi MatthewM
I tried to insert my HTML into the source. I would have cases in the preview window after I returned from the source that would look like a button. But then when I sent it to my email to test functionality it would show up as plain text. I am not an expert on HTML so I'm sure it is something in my syntax that was incorrect. Do you happen to have a simple example of how to use the generated survey link to show up in button format?


MatthewM
Level 6 ●●●●●●
Forum|alt.badge.img+30
  • Level 6 ●●●●●●
  • 1069 replies
  • Answer
  • January 11, 2021

I'm not an authority on HTML either, but I've been able to use the following code before to create this button:
image.png

 

<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td bgcolor="#0076be" class="cta_style" style="padding: 10px 15px; line-height: 20px; letter-spacing: 1px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; background-color: rgb(0, 118, 190);"><span style="line-height: 20px; font-weight: normal; display: inline-block;"><a href="${l://SurveyURL}​" style="color: rgb(255, 255, 255); line-height: 20px; display: inline-block;" target="_blank">Begin the Survey</a></span></td>
		</tr>
	</tbody>
</table>

 

 


  • Author
  • Level 1 ●
  • 2 replies
  • January 11, 2021

MatthewM
Thank you! this worked like a charm. you saved me from a lot of trial and error this evening 😊


MatthewM
Level 6 ●●●●●●
Forum|alt.badge.img+30
  • Level 6 ●●●●●●
  • 1069 replies
  • January 11, 2021

Thanks for letting me know it worked. Glad it could save you from some mindless repetitive work!


This worked great. I don't understand why, but every other button I made didn't work. Thanks for the post.


Can you guys please help me to repeat this process, I'm still a bit confused on where to insert the above HTML. Do I need to insert it in the bottom section before the string of code ends or do I need to replace the current code?

Thanks


MatthewM
Level 6 ●●●●●●
Forum|alt.badge.img+30
  • Level 6 ●●●●●●
  • 1069 replies
  • November 8, 2021

Hi GIntegrity ,
If you have not started to write your email in the editor, you can replace the default code from Qualtrics.
If you have already drafted your message in the editor, select the position in your message where you want to insert the button.
In either case, make sure to toggle the Source icon to HTML view before you insert the HTML.


bart_blondeel1
Level 2 ●●
Forum|alt.badge.img+8

Works perfect :-)


Forum|alt.badge.img+2
  • Level 2 ●●
  • 9 replies
  • July 11, 2023

Hi! I can't view the html code. If someone could share it, I'd be very grateful, as I also need to make a similar button and have limited knowledge of html. Thanks in advance!


JoseS
Former XM Community Team Member
Forum|alt.badge.img+20
  • Former XM Community Team Member
  • 447 replies
  • July 13, 2023
Paula_978 wrote:

Hi! I can't view the html code. If someone could share it, I'd be very grateful, as I also need to make a similar button and have limited knowledge of html. Thanks in advance!

Hello @Paula_978 , thank you for  bringing this post to our attention! The correct code has now been added to the original solution!

Let me know if you can see it correctly on your end now. 🙂


Forum|alt.badge.img+2
  • Level 2 ●●
  • 9 replies
  • July 20, 2023

Thank you very much for the reply and for fixing the issue so that the code shows. 

I finally found a similar code on a different thread, and adapted that. It works well, and it was possible for us to send the survey invitation with the button included.

 


KBrady
Level 2 ●●
Forum|alt.badge.img+11
  • Level 2 ●●
  • 37 replies
  • August 25, 2023

Can anyone advise how to make this a oval button rather than a rectangle? 

 


Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1091 replies
  • August 26, 2023
KBrady wrote:

Can anyone advise how to make this a oval button rather than a rectangle? 

 

Add border-radius and you can smooth out the corner: Tweak it a litlle bit for the oval button


<table border="0" cellpadding="0" cellspacing="0">

    <tbody>

        <tr>

            <td bgcolor="#0076be" class="cta_style" style="padding: 10px 15px; line-height: 20px; letter-spacing: 1px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; background-color: rgb(0, 118, 190);border-radius: 16px;"><span style="line-height: 20px; font-weight: normal; display: inline-block;"><a href="${l://SurveyURL}​" style="color: rgb(255, 255, 255); line-height: 20px; display: inline-block;" target="_blank">Begin the Survey</a></span></td>

        </tr>

    </tbody>

</table>

</br>

<table border="0" cellpadding="0" cellspacing="0">

    <tbody>

        <tr>

            <td bgcolor="#0076be" class="cta_style" style="padding: 10px 15px; line-height: 20px; letter-spacing: 1px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; background-color: rgb(0, 118, 190);border-radius: 50%;"><span style="line-height: 20px; font-weight: normal; display: inline-block;"><a href="${l://SurveyURL}​" style="color: rgb(255, 255, 255); line-height: 20px; display: inline-block;" target="_blank">Oval Button</a></span></td>

        </tr>

    </tbody>

</table>

 


KBrady
Level 2 ●●
Forum|alt.badge.img+11
  • Level 2 ●●
  • 37 replies
  • August 28, 2023

Thank you, this is perfect!


Forum|alt.badge.img+1
  • 3 replies
  • November 30, 2023

Hey,

I tried using the code from above:

<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td bgcolor="#0076be" class="cta_style" style="padding: 10px 15px; line-height: 20px; letter-spacing: 1px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; background-color: rgb(0, 118, 190);"><span style="line-height: 20px; font-weight: normal; display: inline-block;"><a ${l://EmployeeEngagementURL} style="color: rgb(255, 255, 255); line-height: 20px; display: inline-block;" target="_blank">Begin the Survey</a></span></td>
		</tr>
	</tbody>
</table>

But when I paste it into the message editor, it changes the href=”${l://EmployeeEngagementURL}” to href="%24{l://EmployeeEngagementURL}" and that seems to mess up the link completely, when I try to open the Link in the Email, it redirects me to “file:///Applications/Microsoft%20Outlook.app/Contents/Frameworks/EmailRendererKit.framework/Resources/%24%7Bl://EmployeeEngagementURL%7D”

 

Can anyone help with this?


Leave a Reply