Skip to main content

Posts

Showing posts with the label update view header column

How to change the header column name or title in SharePoint view

Dear all If you want to change the sharepoint column name only in view the following script will work perfectly <script> (function () {     function preTaskFormRenderer(renderCtx) {        modifyColumns(renderCtx);         }     function modifyColumns(renderCtx)     {       var arrayLength= renderCtx.ListSchema.Field.length;         for (var i=0; i < arrayLength;i++)         {            if(renderCtx.ListSchema.Field[i].DisplayName == '[Your Comlumn Name 1]')              {                var newTitle= "[New Name]";                var linkTitleField = renderCtx.ListSchema.Field[i];                linkTitleField.DisplayName = newTitle;     ...