Within SharePoint online, I would like to set a custom default image for my "thumbnail" column (or "Hyperlink or Picture"). I named it "Cover Photo". If I go into my settings for this specific column (displayed below), it invites me to put in JSON code. Is there where I can pull in a default image from a remote HTTP location? If so, how do I write that here in this JSON box area?

enter image description here

1 Answer 1


Normally, we could use following json to set default value for image column:

  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json" ,

  "elmType": "img",
  "style": {
  "width": "100px"
  "attributes": {
  "src": "/sites/Team1/SiteAssets/__siteIcon__.jpg"


enter image description here

Per my test, I use the image stored in current site, you can try to use images from remote HTTP locations.

More information about src attribute:


  • Thank you so much! I'll give it a try today.
    – klewis
    Mar 24, 2021 at 14:24
  • That works when the SharePoint view is set to list. But does not work when the view is set to Gallery...regardless, I still like it.
    – klewis
    Mar 24, 2021 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.