AnsweredAssumed Answered

Velocity Scripting Token help

Question asked by Erin Casner on Aug 15, 2018
Latest reply on Aug 16, 2018 by Neil Robertson-Ravo

What am I doing wrong!?


#if ($lead.FirstName.startsWith("First") )
#set ($name = "Hello")
#set($name = "Hello $display.capitalize($lead.FirstName.toLowerCase())")


What I am trying to do... Leads can have the name "First Name 123". I want to change that to just Hello and then otherwise normalize the names (ERIN --> Erin). I can't seem to be able to figure it out!

Any help would be amazing. I am new to coding to be gentle. haha

Thank you!