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.
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.
I was looking at the output and it only returned a single result, instead of [0] San Francisco [1] California [2] United States which would be as expected - if the split / array worked correctly this would display as such in dev tools?