Solved

Insert Property | Firstname|default change in Capital Letters

  • 5 October 2021
  • 3 replies
  • 3208 views

Badge +2

Good day,

I use Klaviyo for the abandoned cart option, for my whole text i use capital letters, but for now it’s not possible to change the Firstname|default in Insert Property to capital letters. 

 

I hope that somebody can help me with.

Looking forwards to a solution.

Kind regards,

Joris

icon

Best answer by retention 5 October 2021, 19:27

View original

3 replies

Userlevel 7
Badge +57

Hi @JorisTruthHurts - welcome to the community!

You can use “Template Tag Filters” which are handy little functions that can apply formatting or styling to Template variables. For example, if you want to change the value to “All Caps” - there is a filter called upper that you can use.  

Specifically to change the First Name variable to all upper case, you can use this code:

{{ first_name|upper|default:'there' }}

For reference, here’s a few other Filters that might be helpful too:

Hope this helps!

Badge +2

Hi there!

 

This was helpful. How can I set only the first letter capital? Like this: Joseph and not JOSEPH

 

Thank you

Badge +3

Use ‘title.

{{ first_name|title|default:'there' }}

Reply