Step 1 – Create an Empty Variable
The first thing I did is create an empty variable called selectedService:
The variable type is an object because we will want to add all the information from the item we select.
We leave it empty by default because no service is selected by default.
Step 2 – Create a Workflow to Add Information to the Variable Based on the Selected Item
The second thing I did is create a workflow called Select Service on the icon that the user can click on to make the popup appear.
The trigger is On Click because the workflow starts when the user clicks on the icon.
The variable we want to change is the selectedService variable (which is empty by default).
We want the whole data from the selected item to be the new value of this selectedService variable.
Bind the Image to the selectedService Variable
Finally, in the popup, we bound the image to our selectedService variable that includes all the information from the selectedService.
The tricky part was to find where the image URL was stored in the variable and it turns out it’s the third item in variable, so index 2 in code speak.
Ok, I hope that helped! It was fun looking!
If anything is unclear or doesn’t work as intended, don’t hesitate to let us know!!