How would you split up a text string into 3 values that can then be used in a SC?

Hey all,

I have an address line, e.g. San Francisco, California, United States.

I’d like to split the string up so each split is useable as a variable in a Server Action.

I’ve tried split string in a set value, setting it as text and as an array but don’t seem to be returning anything more than the same string in output in dev tools.

Screen Shot 2020-09-10 at 5.39.30 pm

I’ve checked this post out thinking it might solve my need, but couldn’t find a solution here:

I’ve also tried doing it on the front end - with ‘split’ in the text formatter, but I’m missing the part (which is no doubt obvious) that would enable me to return the three items from the string.

Will keep playing around but appreciate anyone pointing me in the right direction.

Community Page
Last updated: