Takodachi Posted December 2, 2022 Report Share Posted December 2, 2022 Hi I was wondering if there is a way to show default image in the HTML block if there is no available image in a report. I know there is a default image option for the image field but I don't want to it for this one as I am using CSS to design the results in my report. Any ideas anyone? Quote Link to comment Share on other sites More sharing options...
1 Kronos Posted December 2, 2022 Report Share Posted December 2, 2022 Hi Tako, I think I have encountered the similar issue before. Here is what I did: I'm assuming you already have an app parameter in your app that will be used as the default image for your report page. If not, you may follow this thread: https://forums.caspio.com/topic/11272-adding-a-logo-image-on-datapages/#:~:text=There's actually,app parameter here*]"> Now answering the question, here is an HTML code that I used to display an image and set a default image if the image field is blank: <img src="[FILE FIELDNAME]" onerror="this.src='[DEFAULT FILE FIELDNAME]'" /> I hope this helps! Takodachi 1 Quote Link to comment Share on other sites More sharing options...
Question
Takodachi
Hi I was wondering if there is a way to show default image in the HTML block if there is no available image in a report.
I know there is a default image option for the image field but I don't want to it for this one as I am using CSS to design the results in my report.
Any ideas anyone?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.