AnsweredAssumed Answered

velocity script newbie - lowercase first initial

Question asked by dd34a3d5d8f9572e3905b50f127a3c0521eaf4fe on Jul 20, 2016
Latest reply on Jul 28, 2016 by sanford.whiteman

Hi there - just learned that velocity scripting exists in Marketo! Where have I been, under a rock somewhere!? Anyway, now I just wish I knew how to use it. In the meantime, maybe someone can help point me in the right direction on how to get a lowercase first initial for my lead records?  I tried to modify an uppercase script (granted it does the whole name, but 1 thing at a time) and I couldn't even get that to work (changed 'capitalize' to 'lowercase').

 

Thanks all!!

 

#set ($fname = ${lead.FirstName})

#if($fname.equals(""))

there

#else

$display.lowercase($fname)

#end

Outcomes