Skip to main content
November 19, 2013
Question

Improper Capitalization on Form Fills

  • November 19, 2013
  • 2 replies
  • 858 views
Hi Marketo Community!

Leads have been filling out our form with improper capialization such as JOHN or john.  When we send out emails with tokens it will mimic this.  Is there a way to control or fix how they capialtize their information?

Thank you!
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

November 19, 2013
Subscribing, we have this same issue.
November 20, 2013
A very simple JavaScript within form validation can capitalise the first letter of each word. 
 
function normaliseCase(str)
{
    return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
}


Adding custom validation to a Marketo form before submitting it