Solved! Go to Solution.
I think below velocity script should help. The script removes the "https://" from the CO field's value, protocol is then added in the <a> tag to enable the click links tracking.
#set( $fieldWithProtocol = $cartsAndQuotes_cList.get(0).cartURL)
#set( $fieldWithoutProtocol = $fieldWithProtocol.replaceAll("^https://","") )
<a href="https://${fieldWithoutProtocol}">My Cart</a>
Hope this helps!
I think below velocity script should help. The script removes the "https://" from the CO field's value, protocol is then added in the <a> tag to enable the click links tracking.
#set( $fieldWithProtocol = $cartsAndQuotes_cList.get(0).cartURL)
#set( $fieldWithoutProtocol = $fieldWithProtocol.replaceAll("^https://","") )
<a href="https://${fieldWithoutProtocol}">My Cart</a>
Hope this helps!
I Tried the same code but it's not working for me.
Instead of populating opportunity field default value is getting populated.
Used Code :
<meta class="mktoString" default="en-us" id="fieldWithoutProtocol" mktomodulescope="false" mktoname="fieldWithoutProtocol" />
<tr>
<td align="left">
<div class="mktoText" id="fieldWithProtocol" mktoname="fieldWithProtocol">
#set( $fieldWithProtocol = $OpportunityList.get(0).Repayment_Personalized_URL__c) #set( $fieldWithoutProtocol = $fieldWithProtocol.replaceAll("^https://","") )" />
<a href="https://${fieldWithoutProtocol}">My Cart</a>
</div></td>
</tr>