SharePoint NewForm put Image to the right of fields

NeddyFlanders 101 Reputation points
2021-06-08T14:13:27.91+00:00

Hello, I am trying to put an image to the right of the Fields on the NewForm.aspx in a list. Would I be able to do this with a Content Editor web part? Does anybody have an example of how I would make this image show to the right of all the sharepoint fields I have created? Thanks.

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,605 questions
0 comments No comments
{count} votes

Accepted answer
  1. NeddyFlanders 96 Reputation points
    2021-06-10T18:52:58.51+00:00

    Hi Michael, I wasn't able to get that to come out to the right of the SharePoint fields. What I did do was go into the customized form in SharePoint Designer and added
    <td><WebpartPages:WebPartZone runat="server" FrameType="None" ID="Right" Title="loc:Right"><ZoneTemplate></ZoneTemplate></WebpartPages:WebPartZone></td>
    This put a web part to the right side, I then just added an image web part and pointed to my image. Thanks for helping me on this.


4 additional answers

Sort by: Most helpful
  1. MichaelHan-MSFT 18,031 Reputation points
    2021-06-09T07:06:39.887+00:00

    Hi @NeddyFlanders ,

    You could try to use the below code in Content Editor web part to put an image to the right Fields on the NewForm.aspx

    $(function(){  
    	$("table.ms-core-tableNoSpace>tbody>tr").append("<td><img src='http://sp16/sites/michael/PublishingImages/test.jpg' alt='not found' width=300 height=200  ></td>");  
    });  
    

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. NeddyFlanders 96 Reputation points
    2021-06-09T18:09:28.127+00:00

    It's putting the image to the right of Content Editor web part but it's still above and to the right of the SharePoint fields. Is there anyway to get it to the right of the fields? Thanks.

    0 comments No comments

  3. MichaelHan-MSFT 18,031 Reputation points
    2021-06-10T05:03:16.207+00:00

    Hi @NeddyFlanders ,

    Maybe this would be helpful to you:

    $(function(){  
    	$("div#WebPartWPQ2>table>tbody>tr>td:first").attr('valign', 'top');  
    	$("div#WebPartWPQ2>table>tbody>tr").append("<td><img src='http://sp16/sites/michael/PublishingImages/test.jpg' alt='not found' width=300 height=200 ></td>");  
    })  
    
    0 comments No comments

  4. NeddyFlanders 101 Reputation points
    2021-06-24T13:02:33.227+00:00

    What I did do was go into the customized form in SharePoint Designer and added
    <td><WebpartPages:WebPartZone runat="server" FrameType="None" ID="Right" Title="loc:Right"><ZoneTemplate></ZoneTemplate></WebpartPages:WebPartZone></td>
    This put a web part to the right side, I then just added an image web part and pointed to my image.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.