velocity script newbie - lowercase first initial

JD_Nelson
Level 10 - Community Advisor

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

21 REPLIES 21
JD_Nelson
Level 10 - Community Advisor

Thanks - I'm getting "$display.uncapitalize($fname)" in my email when I test it. AmI doing something wrong?