- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
It's working if i include the personalization block normally but when i include in hyperlink it's not working.
my personalization block:
ExitSurvey :
<%
if ( dataSource.Job_Category == "Corporate" ) { %>1<%
} %><%
else if ( dataSource.Job_Category == "Call Center" ) { %>2<%
} %><%
else if ( dataSource.Job_Category == "XXXXXXX" ) { %>3<%
} %><%
else { %>0<%
} %>
my hyperlink :
i tried below ways : for (Job_Category == "Call Center")
way 1:
<a href="https://domain/6CD9B920/G10DF6LT/en-US?type=<%@ include view='ExitSurvey' %>" target="_blank">https://domain/6CD9B920/G10DF6LT/en-US?type=<%@ include view='ExitSurvey' %></A>
output : https://domain/6CD9B920/G10DF6LT/en-US?type=2 when i click this link the redirect link i am seeing is : https://domain/6CD9B920/G10DF6LT/en-US?type=1230
it is including all '1230' not using the conditional block used in personalization block when i use the block inside href
way 2:
<a href="https://domain/6CD9B920/G10DF6LT/en-US?type="+<%@ include view='ExitSurvey' %> target="_blank">https://domain/6CD9B920/G10DF6LT/en-US?type=<%@ include view='ExitSurvey' %></A>
This way i am getting error in personlization block.
Views
Replies
Total Likes