You need to sign in to do that
Don't have an account?
Phuc 2
Aura component parse string to get first last name
Hello ALl,
Within an aura component how do you parse/split a string?
I need to sperate a string value that has the full name into
First Name and last Name
Thank you,
P
Within an aura component how do you parse/split a string?
I need to sperate a string value that has the full name into
First Name and last Name
Thank you,
P
You can use the split function in your lightning component as suggested in https://salesforce.stackexchange.com/questions/237499/why-i-use-split-function-have-error-in-lightning-component-like-this
Make sure you add a toString method convert the field to String.
Also see https://salesforce.stackexchange.com/questions/195052/how-to-use-split-function-inside-an-expression-in-lightning-component
Thanks
All Answers
You can use the split function in your lightning component as suggested in https://salesforce.stackexchange.com/questions/237499/why-i-use-split-function-have-error-in-lightning-component-like-this
Make sure you add a toString method convert the field to String.
Also see https://salesforce.stackexchange.com/questions/195052/how-to-use-split-function-inside-an-expression-in-lightning-component
Thanks
Please follow below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh