I have a single image on a dynamic page. How can I get source?
At first I tried something like this:
let source = $w("#imageName").src;
But that didn't work --- all I got was the source for the image in the editor, not the image on the live dynamic page.
So then I tried something like this (and variations of this 'getCurrentItem' code):
var currentItem = $w('#dynamicDataset').getCurrentItem(); currentPic = currentItem.imageFieldKey let source = currentPic.src
But that didn't work either. What am I doing wrong?
Please and Thank You