21 Replies Latest reply on Jul 28, 2016 7:03 PM by Sanford Whiteman

    velocity script newbie - lowercase first initial

    JD Nelson

      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