First Name and Last Name properties: how to make them look nice?SOLVE
Apr 20, 2017 5:32 AM
Problem: while entering their first and last name in a form, people digit them either uppercase, lowercase, initial etc.
The contact profile is updated at every form submission with the way last time the name/surname are digited. But if then the name is picked to send an automatic follow up email, the system writes it exactly as is in the contact profile. So it could happen, like in the example below, to have:
"Dear LESLIE, thank you for submitting the form!"
which does not look friendly or nice at all 😉
Question: is it possible to have some code that automatically fixes the way the name is digited and correct it to "initial"?
Since the properties First Name and Last Name are blocked by HubSpot, I suppose that this should have to be implemented in the HubL...
Solved! Go to Solution.
Apr 21, 2017 4:43 PM
HubSpot does not have any built-in features or plug-ins to convert names to proper case. However, you could implement a solution using HubL filters.
In particular, the Lower HubL Filter converts all letters in the selected text to lowercase and the Capitalize HubL Filer capitalizes the first letter of the selected string. You could use these filters in conjunction to convert text to proper case.