Sp-dev-docs: Custom field created doesn't appear on the UI. It is hidden

Created on 15 Jul 2020  Â·  3Comments  Â·  Source: SharePoint/sp-dev-docs

I create a custom field using the REST API :
POST https://{site_url}/_api/web/lists(guid'{list_guid}')/Fields
{
"__metadata": {
"type": "SP.Field"
},
"Title": "field title",
"FieldTypeKind": 2,
"Required": "true",
"EnforceUniqueValues": "true",
"StaticName": "field name"
}

Custom field created doesn't appear on the UI. It is hidden. To make it appear on the UI, we need to do the following:
Add column -> Show/ Hide columns -> Select the checkbox of the "field title" -> Apply
After doing these steps, I can see the newly created field/column on the UI

Shouldn't it automatically appear on the UI? Also if not, which REST API should I use to make it unhidden? Or which property should I change to make it unhidden via REST API


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

csorest docs-comment answered question

Most helpful comment

Hi viveksk6,

You need to add it to a view to display it. Here is the API reference:

image

Test :

1, Create a field
1
2, Add to a view (by default it's All Items)
image

Result:
2
image

Baker Kong
Microsoft SharePoint Community Support

All 3 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Hi viveksk6,

You need to add it to a view to display it. Here is the API reference:

image

Test :

1, Create a field
1
2, Add to a view (by default it's All Items)
image

Result:
2
image

Baker Kong
Microsoft SharePoint Community Support

Closing this issue as "answered". If you encounter a similar issue(s), please open up a new issue. See our wiki for more details: Issue-List: Our approach to closed issues

Was this page helpful?
0 / 5 - 0 ratings

Related issues

patrick-rodgers picture patrick-rodgers  Â·  3Comments

byrongits picture byrongits  Â·  3Comments

StfBauer picture StfBauer  Â·  3Comments

ken-harris picture ken-harris  Â·  3Comments

waldekmastykarz picture waldekmastykarz  Â·  3Comments