Hello,
I have recently figured out how to create a code that would populate the name I need from a website. When I use the website selector it highlights the first and last name, I'm wondering if there is an additional code or trick I can use to split them. I only need the first name, I don't want the first and the last. Any ideas?
Hi Courtney,
Thanks for reaching out. Yes, there is a way to split the names!
You can use Text Blaze's split command to create a list that contains the first and last name, and select whether you want the first or last.
The snippet below accomplishes this, but you will see an error in the preview since website selectors can't be previewed here. To use this snippet, first copy it to your dashboard, then set the website selector to your use case.
{names=split({site: text}, " ")}
First Name: {=names[1]}
Last Name: {=names[2]}
Best regards,
Alexander