Hello!
I’ve got a list of Photos from Google Places, with their ID’s, in a repeating list. To view the photos in the repeating list is easy, just add the URL before, then insert the dynamic data of the ID after.
I’m trying to then store the full URL of the photos in a custom state list on the page. For the life of me, I cant work out how to add the URL before the dynamic ID to save it as one item in a list.
I’ve tried “Arbitrary Text” (of the URL) followed by the ID, however it won’t accept it. Any ideas would be amazing.
Either your state isn’t accepting a list (check the box) or this isn’t actually a list of text.
Looking at the expression you just have a text, rather than a list of texts. You’ll need to set this up as a list or :split by the text to create a list.
E.g. (one,two,three) :split by ‘,’ would be :
one
two
three
I do have a list, how however I’d like to add the same static text to the front of each entry in it. When I do this, it then turns it into a single entry.
I’m looking to basically add the same static text infront of each line in a list, but seriously struggling!
I am not on my computer right now to give you the full steps, but try this:
MAIN's List of Search places by string result (Google Places API)s :each item's photos's photo_reference :formatted as text
Then add the prefix you want followed by This text (or This photo_reference)
After that maybe you will need to set some specific delimiter like comma “,”, pipe “|” or any one you want and then at the end of the entire expression you need to use the :split by operator with the delimiter you set before, this is necessary to generate the new list of text since the custom state is a list of text.