Home

Modify EditForm.aspx and DispForm.aspx on Document/Image Library

%3CLINGO-SUB%20id%3D%22lingo-sub-368306%22%20slang%3D%22en-US%22%3EModify%20EditForm.aspx%20and%20DispForm.aspx%20on%20Document%2FImage%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-368306%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20been%20tasked%20to%20make%20the%20current%20out%20of%20the%20box%20form%20view%20for%20editing%20or%20just%20viewing%20item%20properties%20more%20user%20friendly.%20I'm%20using%20SharePoint%202013%20On-Prem.%20We%20have%20a%20content%20type%20that%20has%2026%20fields%2C%20out%20of%20the%20box%20it%20just%20one%20huge%20long%20list%20and%20we%20would%20like%20to%20modify%20this%20with%20Info%20Path%20like%20forms.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EFrom%20what%20I%20can%20see%20online%2C%20I%20cant%20directly%20modify%20this%20form%20with%20info%20path%20because%20its%20not%20a%20list%20(Task%20list%20or%20regular%20list)%20which%20has%20this%20option%20in%20the%20ribbon.%20SharePoint%20designer%20no%20longer%20gives%20the%20preview%20of%20the%20site%20and%20ONLY%20shows%20the%20code.%20the%20problem%20I%20find%20with%20this%20code%20is%20that%20when%20i%20edit%20the%20EditForm.aspx%20and%20DispForm.aspx%20files%20in%20the%20library%20I%20don't%20see%20any%20reference%20to%20the%20columns%2C%20so%20i%20take%20a%20step%20back%20and%20look%20for%20reference%20to%20the%20content%20type%2C%20still%20don't%20see%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20my%20question%20is%20how%20can%20I%20modify%20this%20form%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-368306%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2013%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-377858%22%20slang%3D%22en-US%22%3ERe%3A%20Modify%20EditForm.aspx%20and%20DispForm.aspx%20on%20Document%2FImage%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-377858%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Jeremy%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20attached%20you%20can%20find%20part%20of%20my%20HTML%20code%2C%20which%20I%20used%20with%20my%20list%20with%20~70%20questions.%3C%2FP%3E%3CP%3EThat%20code%20helped%20me%20make%20the%20new%20and%20edit%20form%20look%20more%20friendly.%3C%2FP%3E%3CP%3EYou%20can%20find%20there%2C%20how%20I%20refered%20to%20the%20columns%20in%20SP%20Designer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExamples%3A%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3E%3CEM%3E%3CVALUE-OF%20select%3D%22%26quot%3B%40Title%26quot%3B%2F%22%3E%3C%2FVALUE-OF%3E%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E%3CFORMFIELD%20fieldname%3D%22%26quot%3BAuthor%26quot%3B%22%20runat%3D%22%26quot%3Bserver%26quot%3B%22%20controlmode%3D%22%26quot%3BDisplay%26quot%3B%22%20disableinputfieldlabel%3D%22%26quot%3Btrue%26quot%3B%22%3E%3C%2FFORMFIELD%3E%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E%3CVALUE-OF%20select%3D%22%26quot%3B%40NewColumn1%26quot%3B%2F%22%3E%3C%2FVALUE-OF%3E%3C%2FEM%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20it%20is%20something%20that%20you%20searched%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Jeremy Jamieson
New Contributor

I've been tasked to make the current out of the box form view for editing or just viewing item properties more user friendly. I'm using SharePoint 2013 On-Prem. We have a content type that has 26 fields, out of the box it just one huge long list and we would like to modify this with Info Path like forms.


From what I can see online, I cant directly modify this form with info path because its not a list (Task list or regular list) which has this option in the ribbon. SharePoint designer no longer gives the preview of the site and ONLY shows the code. the problem I find with this code is that when i edit the EditForm.aspx and DispForm.aspx files in the library I don't see any reference to the columns, so i take a step back and look for reference to the content type, still don't see it.

 

So my question is how can I modify this form?

1 Reply

Hi Jeremy,

 

In attached you can find part of my HTML code, which I used with my list with ~70 questions.

That code helped me make the new and edit form look more friendly.

You can find there, how I refered to the columns in SP Designer.

 

Examples: 

  • <xsl:value-of select="@Title"/>
  • <SharePoint:FormField FieldName="Author" runat="server" ControlMode="Display" DisableInputFieldLabel="true" />
  • <xsl:value-of select="@NewColumn1"/>

 

I hope it is something that you searched :)

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
48 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies