Hi Ragic, I’m designing a custom print report with an image. I noticed that there is a alternate text for when the image field is empty to totally delete the image. However is there another alternate text I can use to keep the original image instead?
For example i’ve put a default QR code in the report template as a placeholder, which I only want changed when there is a custom qr code for that particular form generated. So I don’t have to always upload the default qrcode to the field.
Actually, I’ve found a workaround for now. I’ve kept the original image under the placeholder image with the {d.1000000:ifEM:drop(img)}. so it reveals the default image when there is none to cover it. However, it may still be helpful to have the direct command when this does not work.
Hi Clifford - thank you for your post. May we understand your use case further, so we can better assist you in providing a solution? For example, why would you like to put a default QR Code? What does the QR Code represent? E.g., an URL to your official website?
Hi Katet - thanks. For my current case it is for a qr code to our website. However, in some cases where there is a specific sub page we want to link to instead like a profile or product page, then we replace it with that specific qr code for that particular report printout. Normally, for databases it may be prudent to have the same qrcode placed for every field but it is a hassle to remember to upload the image for every new entry since we cannot set a default attachment. The other workaround to probably to use the Barcode field and generate the default qrcode from there but it is limited in the design. Hence, my workaround.
Thank you for providing more context about your use case. We’ve discussed this internally and, from a database design perspective, it’s generally more reliable to attach the QR code directly to each Ragic record rather than rely on a default image defined in the Custom Print Report template.
This approach ensures that each record maintains complete data integrity, keeps your report templates simpler, and avoids potential maintenance needed on each Custom Print Report template every time the required QR Code changes. For scenarios like yours—where a default QR code applies to most records and only certain entries require a customized one—the recommended setup is to store the QR code image at the record level and let the report reflect it automatically.
That said, our development team is considering the possibility of allowing a default image to be defined directly in an upload picture field. We’ve added you to the notification list, and we’ll provide an update here if this feature becomes available in the future.
Thank you again for sharing your creative workaround and your detailed explanation—it’s always valuable for us and for other users exploring similar setups.