I think this is quite simple, but I can’t find a solution how to set my url from the datamapper in the email.
I want to change the href of the code below with a variable in the designer.
I tested some things with the code below in de standard script:
var link = record.fields.url;
results.attr(“href”,link);
below is the code for the button.
<div>
<!--[if mso]>
<v:roundrect
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w="urn:schemas-microsoft-com:office:word"
href="https://www.example.com"
style="height: 40px; v-text-anchor: middle; width: 200px;"
arcsize="12.5%"
strokecolor="#ffffff"
fillcolor="#2463a5"
>
<w:anchorlock />
<center>
<table width="100%" border="0" cellpadding="0" cellspacing="0" valign="middle" style="width: 100%; height: 40px; color: #ffffff; font-family: sans-serif; font-size: 13px;">
<tr>
<td style="padding-top: 0px; padding-bottom: 0px; padding-left: 13px; padding-right: 13px; text-align: center;">
<span style="color:#ffffff;font-family:sans-serif;font-size:13px;line-height:40px;text-align:center;text-decoration:none;-webkit-text-size-adjust:none;null"> Naar de actiepagina </span>
</td>
</tr>
</table>
</center>
</v:roundrect>
<![endif]-->
<a
style="
width: 200px;
line-height: 40px;
background-color: #2463a5;
border: 2px solid #ffffff;
border-radius: 5px;
color: #ffffff;
display: inline-block;
font-family: sans-serif;
font-size: 13px;
text-align: center;
text-decoration: none;
-webkit-text-size-adjust: none;
mso-hide: all;
"
href="https://www.example.com"
>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="width: 100%; height: 40px; color: #ffffff; font-family: sans-serif; font-size: 13px; mso-hide: all;" valign="middle">
<tbody>
<tr>
<td style="padding-top: 0px; padding-bottom: 0px; padding-left: 13px; padding-right: 13px; text-align: center;">
<span style="color:#ffffff;font-family:sans-serif;font-size:13px;line-height:40px;text-align:center;text-decoration:none;-webkit-text-size-adjust:none;null">Naar de actiepagina </span>
</td>
</tr>
</tbody>
</table>
</a>