Improper Capitalization on Form Fills

Anonymous
Not applicable

Improper Capitalization on Form Fills

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!
Tags (1)
2 REPLIES 2
Anonymous
Not applicable

Re: Improper Capitalization on Form Fills

Subscribing, we have this same issue.
Anonymous
Not applicable

Re: Improper Capitalization on Form Fills

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