How to clean up a string in Yeeflow?

Hi everyone,

I’m working on a form in Yeeflow and I’m facing an issue with cleaning up a string. Specifically, I have a calculated field that returns a string in the following format:

[“https://img.yeeflow.com/1c1dtpKwGI”]

My goal is to clean this string so that it only contains the URL without the brackets or quotes, like this:

https://img.yeeflow.com/1c1dtpKwGI

I’ve tried using the Replace() function, but I’m not sure if I’m doing it correctly or if there’s a better approach. Does anyone know the best way to handle this in Yeeflow? Any tips or examples would be greatly appreciated.

Maybe a function GetFromArray is needed…

Thank you!

Alternatively: How can I properly use the Image control with the Calculation option to display images dynamically?

Hi Mauro,

There’re two functions may help,

getAttr(imgVar, 0) can be used to get the first element of an array.

join(imgVar), returns a string by combining all the elements in the array with either commas or a specified separator string. It will return “https://img.yeeflow.com/1c1dtpKwGI” in your case as the array only has one element.

And regarding the second question, you can use Dynamic image control, which accepts variables or formula result as the input. And this control can use an array variable directly without other processing.

1 Like

Hi Frank:

I’m working on displaying a product-related image in a sublist using the image control with calculation mode. However, I’m unable to get the image to display, even when using a direct Yeeflow picture URL.

Could you please advise on how to resolve this issue?

Thank you.