Display First Name Only

This should be an easy one I think but I can't seem to figure it out.

I have a data source where the value is full name 'Brad Lawryk' and on my page I just want to display the first name 'Brad' only. Is this possible?

Simply split by empty space and get the first part:

{{fullname.split(' ')[0]}}
1 Like

Ah! I was missing the [0] part. Is there a way to set that in the interface?

Thanks for the quick answer. Works great!

I don't think there's a way to do that through the UI, maybe we can add an option to select index @George ?

2 Likes

I typically type it it manually, but wouldn’t these work?

Edit: Sorry those won’t display after using Split…but maybe they should?

1 Like