The display is useful, for example, in the thank you page or in the win confirmation.
Use the following shortcuts to display:
{{PROMO_CODE}}
– the winning code, if used{{PROMO_CODE_TEXT}}
– the name of the winning code, if used
Example of using the abbreviation
Example of inserting a shortcut into HTML to display in a thank you page:
<p>This is your code to apply the discount {{PROMO_CODE}}</p>
Example for copying the code to the clipboard
create a separate HTML container - for example SPAN
- with a unique class, for example:
<p>Use this code <span class="your-promo-code">{{PROMO_CODE}</span></p>
add a button that, when clicked, will read the code from SPAN
and paste it into the clipboard using the action toClipboard
:
<button onclick="mailocator.do('toClipboard: .your-promo-code, Copied!')">Click to copy</button>
When you click the Copy button, the button text changes to Copied! and the code is saved to the clipboard.