Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Can an image be linked to an image field?

Avatar

Level 1

I am trying to link a background image on my master page to an image field on another sheet within the document. is this possible?

1 Reply

Avatar

Level 7

Hi,

Try something like this:

form1.#subform[0].ImageField1::change - (JavaScript, client)

xfa.resolveNode("form1.#pageSet.Page1.Image1").rawValue = ImageField1.rawValue;

This will set the image in the master page to the image selected via the Image Field.