Image Field Logo not rendering in PDF from XDP in AEM as a cloud Forms
Hello All,
We are trying to render a PDF from XDP using output service which has a logo. We are passing ImageName in the xml data node and which should pick logo from the crx- content dam path. This is working fine in aem forms 6.5 on premise and the same is not working in aem forms on cloud. Here is the js code we are using in the initialize event of the image field.
var hostUrl = "crx///content/dam/myproject/images/logos/";
var imageName = xfa.resolveNode("xfa.record.ImageName");
if(imageName!==null ){
this.logo.value.image.href= hostUrl +imageName.value+".jpg";
}