How to extract the User’s Last Name first letter, from a List of Users?

How can I show just the first letter of the User’s Last Name in the repeating group?

I dont find the :truncated to 1

58

Thanks

1 Like

I was just going to say :truncated to 1

Haha.

Is the field a text field?

1 Like

This is mine in a repeating group.

See pic:

The field is a Text field but i don’t have the :truncated to… Any other way?

Hmm. Let me see.

First, why does yours say parent group and not current cell? Does it need to be in a group? You said it’s in a repeating group right?

Maybe you can do a test outside of the group in the current cell and see if it lets you do it. Sometimes it’s weird like that.

I have been trying to duplicate your results but can’t.

Preview: https://805truncated.bubbleapps.io/version-test?debug_mode=true

Editor: https://bubble.io/page?name=index&id=805truncated&tab=tabs-1

Maybe can you share your editor? Or duplicate it in another app and share that?

1 Like

Would this be usefull ?

Hello @J805, I am wrong.

I wanted to extract just the first letter of the Last Name, but the field in a List of Users.

06

The fact is that the Possible Match field remain with one User in the end, because the Buyer will eliminate the others user from that field when he chose somebody.

Anyway I don`t know if this is possible (to extract the first letter from the Last Name).

Sorry this was my bad, i am still learning.

Hey @dan25,

Looks like you are referencing a list rather than a single thing – I believe in your screenshot you are selecting a list of Last Names from a list of possible matches. You’ll need to narrow it down to one thing first.



Looking to improve your Bubble™ skills?

Let me turn
:thinking: :tired_face: :confounded:

into
:grinning: :sunglasses: :woman_student:

Coaching and Development at https://uniqueideas.com or schedule a free intro session :gift:

Ken Truesdale
LinkedIn

You’re right @mebeingken, I realized this in the last hour.

Do you think I could do something else with my Data?

02

When I select a single User from the many, should I create another field, something like “Match” and copy that single User?

What would be the most convenient thing to do?

Thank you

Hi @dan25

I’d be happy to help but right now, I’m thoroughly confused about what you are trying to do. :slight_smile: The post is about extracting a letter on a text field, but now I’m seeing something entirely different – makes me feel like I walked into the middle of a conversation. :slight_smile:

You can definitely get the first letter of the last name.

I believe the whole reason :truncated is not showing up is because it is not a text field you are referring to. If you are referring to a list and showing the results in a repeating group you can choose the :first item if that is the one you are looking for.

Then as long as under your User data you have the fields of “First Name” and “Last Name” as both text fields then you should be able to truncate it to the first letter.

1 Like

Agreed.

anyone try Regex? It lives for stuff like this. The code will make your eyes hurt but it’s not as bad as it seems.

This helps
https://regexr.com

1 Like

Love regex but probably overkill. trucatated to 1 will get the character, just need to hand it a single text field.

Thank you @J805, the solution was to chose the :first item and them :trucated to 1.

This topic was automatically closed after 70 days. New replies are no longer allowed.