Highlighted

Dynamically changing Image component content on AEM Form from JavaScript

RobertBailey201

02-09-2016

Hi All,

Is it possible to dynamically change the content of an Image component on an AEM Form.

For example if I have an image component set to “/content/dam/Banner 1.png” and I want to dynamically change it to “/content/dam/Banner 2.png”.

Thanks,
Robert

Replies

Highlighted
Highlighted

RobertBailey201

02-09-2016

Thanks workflowuser,

How do I use jquery to set its attr to the new location of the file?

I have set the CSS class to "image1" for example.

Thanks again for your help,

Best regards,

Robert

Highlighted

RobertBailey201

08-09-2016

Thanks workflowuser,

How do I use jquery to set its attr to the new location of the file?

I have set the CSS class to "image1" for example.

Thanks again for your help,

Best regards,

Robert