I would like to understand is there anyway to use Java functions in personlization blocks.
Example:- ( length(targetData.filed1) > 0 ) { 'Message A'}
Solved! Go to Solution.
Views
Replies
Total Likes
discovered the option.
<%
var myURL = targetData.UrlLinks;
var url_length = myURL.length;
%>
<% if ( url_length > 0 ) { %><%@ include view='TestLink' %><% } %>
Views
Replies
Total Likes
You can use below syntax and build your logic accordingly
function toSmartCase(str)
{
var strLower = str.toLowerCase(str);
return strLower;
}
Views
Replies
Total Likes
In Personlization block or within campaign workflow?
Views
Replies
Total Likes
<% if ( length(targetData.prosLinkCheck) > 0 ) { %><%@ include view='TestLink' %><% } %> - is this possible in PB?
Views
Replies
Total Likes
discovered the option.
<%
var myURL = targetData.UrlLinks;
var url_length = myURL.length;
%>
<% if ( url_length > 0 ) { %><%@ include view='TestLink' %><% } %>
Views
Replies
Total Likes