CMS Development

Michele1
参加者 | Solutions Partner
参加者 | Solutions Partner

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

解決

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件の承認済みベストアンサー
relabidin
解決策
元HubSpot社員
元HubSpot社員

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

解決

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 

元の投稿で解決策を見る

3件の返信
relabidin
解決策
元HubSpot社員
元HubSpot社員

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

解決

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
参加者

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

解決

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
参加者 | Solutions Partner
参加者 | Solutions Partner

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

解決

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

 

Michele

0 いいね!