Split image field URL and display in PDF
Hi,
I have an image field named "EvidenceImages" that has two or more images. When I go into Globiflow and get the value of "EvidenceImages", it presents comma separated value like this:
https://files.workflow-automation.podio.com/127-55671-image1.jpg, https://files.workflow-automation.podio.com/127-48569-image2.jpg
What I am trying to do in globiflow is use a custom variable so when I use it to create PDF it passes separate HTML image paragraphs to insert the images and by the end get something like this:
- image1 = https://files.workflow-automation.podio.com/127-55671-image1.jpg
- image2 = https://files.workflow-automation.podio.com/127-48569-image2.jpg
Does anyone know or have any code to split this comma separated array so I can display img tags around them to display?
I already tried explode(",", EvidenceImage(Public URL)) and looks to create an array, and when I tried array_slice(explode(",", EvidenceImage(Public URL)),0) to get the first image URL doesn't get anything.
Many thanks
Please sign in to leave a comment.
Comments
2 comments