Good afternoon,
Had a logic to assign a subject of an email confirmation that worked ( based on MOS) :
if (OrderData.ModeOfSale == 55 ) { %> <% Subject = "Your San Diego Symphony Order (Mobile)";%> <% } else { %> <% Subject = "Your San Diego Symphony Order";%> <% } %>
Tried to use solicitor instead and it throws an exception and can't figure out what I am missing :
<% if (OrderData.Solicitor == webapi) { %> <% Subject = "Your San Diego Symphony Order (Website)";%> <% } else { %> <% Subject = "Your San Diego Symphony Order";%> <% } %>
Thanks,
Sabina
Did you try this? It's possible that the value is supposed to be a string?
<% if (OrderData.Solicitor == 'webapi') { %>