dynamic delivery
hi,
i was given a task to create a dynamic delivery but not to use the personalization block.
the task was to change certain content in a pre defined template based on gender.
help me out.
thank you in advance.
hi,
i was given a task to create a dynamic delivery but not to use the personalization block.
the task was to change certain content in a pre defined template based on gender.
help me out.
thank you in advance.
Hi @him2 ,
In your predefined template > source tab, you can copy paste the below script and alter it with the requirement content
<HTML>
<HEAD>
</HEAD>
<BODY>
<P>Hi,</P>
<P>Gender: <% if ( recipient.gender == 1 ) { %>content for Male<% } if ( recipient.gender == 2 ) { %> content for Female<% } %></P>
</BODY>
</HTML>By using the above script, Preview/Result:
Preview for Male Recipient:

Preview for Female Recipient:

And additionally you can use 'else' for default recipients or can add recipient.gender == 0 for defining content for gender as 'none specified'
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.