2

In SP on-premise, we could add a content editor web part and add an image in the new form.

I need to do the same thing with SharePoint online, and I am unsure how to do it.

So basically, what I need to do is every time users want to create a new list (form), they should see an image on top of the page.

3

In SharePoint online modern experience, you can add image on list form using JSON by applying formatting to header section like:

{
    "elmType": "img",
    "style": {
        "width": "100%",
        "max-width": "100%",
        "float": "left"
    },
    "attributes": {
        "src": "=@currentWeb + '/SiteAssets/Microsoft products banner.jpg'"
    }
}

Output:

enter image description here

Documentation: Configure the list form

3
  • 1
    That was useful. I didn't knew about this .Thanks for Sharing
    – Saira
    Sep 23 at 6:30
  • You're welcome @Saira! Sep 23 at 6:35
  • Hi @Harris, did you try this? Is it working for you? let me know if you have any further doubt in this. Sep 24 at 5:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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