CMS Development

Michele1
Participant | Partner
Participant | Partner

First Name and Last Name properties: how to make them look nice?

SOLVE

Hi!

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...

Thank you

1 Accepted solution
relabidin
Solution
HubSpot Alumni
HubSpot Alumni

First Name and Last Name properties: how to make them look nice?

SOLVE

Hi @Michele1,

 

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.

 

Rami 

View solution in original post

3 Replies 3
relabidin
Solution
HubSpot Alumni
HubSpot Alumni

First Name and Last Name properties: how to make them look nice?

SOLVE

Hi @Michele1,

 

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.

 

Rami 

medienökonom
Participant

First Name and Last Name properties: how to make them look nice?

SOLVE

Please note that using filters on personalization variables (contact and company variables) is not currently supported for email in HubSpot. Filters can be applied to these properties on COS page and blog templates.....

-.-

Michele1
Participant | Partner
Participant | Partner

First Name and Last Name properties: how to make them look nice?

SOLVE

Hi Rami, thank you for the tip. I'll give it a try 🙂

 

Michele

0 Upvotes