Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

How to update image URL at runtime?

Avatar

Former Community Member
Hello!



I have a problem changing the href value of a static image object at runtime. I want to be able to change the picture in a static image object at runtime by letting the user choose image in a drop down list. I am using the following scipt



formName.pageName.pictureName.value.image.href = "pictureURL";



...and get it to work the first time but not after that. The href property is updated but the picture does not change. Do I have to refresh the form in some way?



Thanks in advance!

Annika
1 Reply

Avatar

Former Community Member
I got the same problem. But it seems to be impossible as someone told me.



I'd be thankful if it was possible and anyone had a workaround or an idea how to solve this.