Anyone know how to show a hyphenated last name with BOTH names capitalized (e.g., John Doe-Smith)?

Hi all,

I created a platform and users who sign up input their first and last name, which are saved as capitalized words. However, some users are signing up with hyphenated last names (e.g., Jon Doe-Smith) and their last name is saving with only the first last name capitalized (i.e., Jon Doe-smith). Does anyone know how to fix this?

Thanks!

Audrey

Hi there, @audreykucer… there are multiple ways to do what you described (for example, you could use the :split by operator to recreate the name by capitalizing the first and last items in a split by a hyphen), and I’m guessing there might be a better/simpler/cleaner way to do it than what I am about to suggest. That being said, the following does seem to work, and you don’t have to worry about whether or not the name actually includes a hyphen because it works regardless.

Note that the regex pattern in the :extract with Regex operator in the Replace by field is the same as the expression that is shown in the screenshot in the Regex pattern field.

Hope this helps.

Best…
Mike

1 Like

That worked! Thank you so much for your quick response!

1 Like

I’ve been having another issue I’m wondering if you know about… Users on my platform have profile pictures. Their pictures are displayed in an image cropped as a circle. The run mode rendering is rescale. As a result, however, pictures that are not nearly square don’t get cropped as a circle. They are circular on the bottom and top and straight on the right and left sides. Have you encountered this?

I have not.

If you want the whole frame to be filled and rounded why don’t you use Zoom rendering? That ensures the entire square (and as a consequence the rounded circle) is filled

Ok thanks anyway @mikeloc !

@georgecollier I tried zoom and it zooms in way too much on the face!

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