The Unsubscribe URL and footer note to be hidden when the Admin unchecked the Subscribable checkbox

Sunayana4
Tera Contributor

Hello community members,

 

I'm looking for assistance on how to handle conditional content in email notifications based on a checkbox selection. I want to implement a feature where specific content, such as an "Unsubscribe URL" and a footer note, should be displayed or hidden in the email based on the selection of a checkbox.

To clarify, when the checkbox is checked, I would like the "Unsubscribe URL" to be visible and functional, and the footer note to be displayed. However, when the checkbox is unchecked, I want both the "Unsubscribe URL" and the footer note to be hidden from the Notification. Please refer the screenshot attached.

Sunayana4_0-1689936720453.png

 

If any of you have experience implementing such conditional logic in email templates, could you please share some insights, best practices, or code examples on how to achieve this?

Your help would be highly appreciated!

Thank you kindly.

Sunayana.

 

0 REPLIES 0