Industry and services
The ideal digital transformation partner is not only an expert in theory and technology but also in its customer’s industry. Our consultants are familiar with the processes, priorities and challenges of these eight focus industries.
Contact us
Manufacturing companies
proMX has long been focused on supporting manufacturing companies with their digital transformation.
proMX services
proMX helps you tackle challenges by analyzing your processes and customizing your system with tailored solutions. In our discovery workshop, we'll pinpoint the right tools to boost productivity. Let’s get started!
This might be useful
Partners
Partnering with proMX Group to offer the proMX 365 Productivity Suite provides a unique opportunity to enhance your business portfolio and drive significant growth.
Become a Partner
Our mission
All companies strive to digitalize and optimize their processes, and thus become more productive.
About us
proMX is your digitalization partner. Our goal is to help you transform your processes to make your business more agile, efficient and competitive. As a Microsoft Partner we are both extremely experienced and well-connected.
More about proMX
Our mission
All companies strive to digitalize and optimize their processes, and thus become more productive.
Nils Pelzer
Sep 23, 2016 | Last updated: Dec 16, 2022
Expert articles | 5 min read

Recently, I found myself needing to customize a SharePoint form in such a way that not all columns are displayed when adding a new item to a custom list.

Can you hide certain sections in SharePoint though? The answer is yes, and there are various reasons why you might need to.

In my case, two user groups worked with this list. The first group should be able to create new items to apply for something, and the second user group should review those items and set a status column to ‘approved’ or ‘rejected’. Based on this column, a workflow should start and send an email to the applicant’s manager to inform him or her of the status. This SharePoint list obviously wouldn’t make much sense if the first user group was able to approve their own applications. So I had to find a way to hide the status column when creating a new item.

How to create a hidden column in your SharePoint list

There are many tools available to customize SharePoint forms. But if all you want to do is hide one column and you don’t need any advanced features, it’s easiest to use SharePoint Designer.

Microsoft SharePoint Designer is a freeware HTML editor specialized in creating or modifying Microsoft SharePoint sites, workflows and web pages. You can download SharePoint Designer 2013 here.

To illustrate this blog post, I created a new custom list with two columns, ‘title’ and ‘status’. The status column is a pick list that lets you choose between ‘new’, ‘approved’, and ‘rejected’.

img-one
Status column pick list

There are three default forms for custom lists:

  • NewForm.aspx is the default form used to add new items to a list.
  • EditForm.aspx is the default form used to edit existing list items.
  • DispForm.aspx is the default form used to view list items

When I open my custom list and click on new item, the NewForm.aspx of this custom list loads. This is the form I want to customize to hide the ‘status’ column.

When I create a new item and then edit it, the EditForm.aspx loads. This form should continue to display the ‘status’ column.

img-two
Default form for adding new items to a list
img-three
Default form for editing existing list items
  • To customize a SharePoint form, simply start SharePoint Designer and connect to your SharePoint site. More information about how to connect to a SharePoint site can be found here. Once you’re connected, click on Lists and Libraries on the left hand pane and select the custom list you want to customize.
img-four
Custom list selection
  • A page to view and manage the settings for this list opens. On the right-hand side, you can find the three forms mentioned above:
img-five
View and manage list opens
  • Click on New… to create a form in SharePoint. Choose name, type and whether or not this new form should be the new default form.
img-six
Create a form in SharePoint
  • After clicking OK, the new form is created and displayed in the forms list on the settings page. Right click the new CustomNewForm.aspx to open it in the advanced editor.
img-seven
Open form in advanced editor
  • A page opens where you can edit the .aspx code. There is a passage of the code that lists all columns as a table. Each table row represents a column in your list. In my case, that’s the ‘title’ and the ‘status’ row. Scroll down until you find the row that you want to hide:
img-eight
Code passage of the form you want to hide
  • You can hide the column by adding “style=’display:none’” to the <tr> tag.
img-nine
Alter code to hide SharePoint column
  • Then save the form and acknowledge the warning. Now if I go back to the SharePoint list and click on new item, the new default form for adding items is displayed, missing the ‘status’ column!
img-ten
Default form for adding items without ‘status’ column

However, if I go ahead and save the item, then open and edit it, the ‘status’ column will still be displayed.

img-eleven
‘Status’ column view

Answering