My company provides quotes to customers. Some quotes may have 20 items, some may have just one. What are your recommendations for creating a module that will display the quote information? We’re currently using Smart Content in a single rich text module and personalization tokens, but that doesn’t seem to format well and all the variations cause the emails to be too big. I created a great table module, but the javascript to hide empty rows isn’t working for an email. Any advice?
Hey @AJacobs4 ,
Email clients do not support JavaScript or any client-side scripting due to it being a security risk. The display issues using the Rich Text are likely because it tends to wipe certain elements added to it. If you’re using personalization tokens I would create a custom module and use HubL (server-side scripting) to determine what cells are shown.
I don’t know what you’re current setup is so here’s just a very very simple example:
<table style="width: 100%">
<tr>
{% if contact.property %}
<td>{{ contact.property }}</td>
{% endif %}
</tr>
</table>
It worked! Thank you!