Is there a custom function that can return the first letter of a word? Similar to LEFT(string,length). Or is there a work around?
Instead of adding an “Initial” field in a form (to limit the questions), I want to be able to automatically return the first letter of their first name, and add it to the user database as “Initial”. Just to give you some context - multiple users are able to share one database, and I’m using the initials to identify which entries are added by which user.
image below.
(*In case of a duplicate, they can edit their initial later)
Great question! I had been thinking about this too. I’d like to be able to show just the first letter of a person’s last name when said person leaves a review or comments under a post. For instance, “John D.” instead of “John Doe”.
I haven’t tried it yet, but @dilon_perera is pretty reliable. I’m going to save this thread for reference later. Glad to know it’s possible and you had success with it.
var first_name = "sutter";
var first_name_in_capital = first_name.charAt(0).toUpperCase() + first_name.slice(1);
var last_name = "j44";
var last_name_in_capital = last_name.charAt(0).toUpperCase()
var Name = first_name_in_capital + '\xa0' + last_name_in_capital + ".";
return Name;