I am building an app for a client and have been able to do almost everything. Funny enough, something that seems like it should be quite simple is turning into a bit of a headache.
In the app, users have profiles. Their profile name should be displayed as “First Name” “Last Name Initial” so for me it would be “John K”.
I’ve explored a bunch of different options from messing with display settings to creating fields in the database, but nothing seems to be working right.
If anyone has any insight of how I could accomplish this it would be greatly appreciated.
Hey there @JohnKrueger
Welcome to the community
The idea is that after the user has submitted the first name and last name, you would uppercase the last name string, keep the first letter only, then save that to a new user text parameter like “last name initial”
In terms of connecting my app to this, since this is external, would the user information still be secure?
var first_name = "John";
var first_name_in_capital = first_name.charAt(0).toUpperCase() + first_name.slice(1);
var last_name = "krueger";
var last_name_in_capital = last_name.charAt(0).toUpperCase();
var Name = first_name_in_capital + "." + last_name_in_capital;
( replace the John and krueger with magic text )
You can do this with API’s too : Custom function to return the first character of a word - #5 by dilon_perera
Perfect job! This also solves my problems because I used AbracAdalo for string manipulation which makes the app super slow! Now I can do everything locally without an API call!
Wow, this is awesome! Thank you so much Dilon I will try it right.
Update: Worked like a charm, thanks!
I will start digging here as well to level up that skill set. Thanks for the help!