Jump to content
  • 0

Default Image in HTML Block


Takodachi

Question

1 answer to this question

Recommended Posts

  • 1

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!

Link to comment
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...