Forum Discussion

virendrak's avatar
virendrak
Steel Contributor
Jun 20, 2026
Solved

SharePoint: Direct Metadata Editing from Library View

Is it possible in SharePoint to allow users to update metadata directly from the document library view without requiring them to click on “Edit properties” or switch to “Edit in grid view,” essentially minimizing or eliminating additional clicks for making changes?

  • Yes, inline editing is possible in SharePoint using JSON column/view formatting with the inlineEditField property.

    With inline editing, formatters can enable users to edit field values directly within the library view, without navigating to:

    • “Edit properties”
    • “Edit in grid view”

    A special JSON property inlineEditField is used.It is set with the internal field name:

    {
      "elmType": "div",
      "inlineEditField": "[$FieldName]",
      "txtContent": "[$FieldName]"
    }


    Example:

    {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
      "elmType": "div",
      "inlineEditField": "[$Remarks_x0020_and_x0020_Commments]",
      "style": {
        "display": "flex",
        "align-items": "center",
        "justify-content": "space-between",
        "padding": "6px 8px",
        "border": "1px solid #c8c6c4",
        "border-radius": "6px",
        "background-color": "#faf9f8",
        "cursor": "pointer"
      },
      "children": [
        {
          "elmType": "span",
          "txtContent": "=if([$Remarks_x0020_and_x0020_Commments] == '', 'Click to add...', [$Remarks_x0020_and_x0020_Commments])",
          "style": {
            "flex-grow": "1",
            "color": "=if([$Remarks_x0020_and_x0020_Commments] == '', '#a19f9d', '#323130')"
          }
        },
        {
          "elmType": "span",
          "attributes": {
            "iconName": "Edit",
            "title": "Click to edit"
          },
          "style": {
            "color": "#605e5c",
            "font-size": "14px",
            "margin-left": "8px"
          }
        }
      ]
    }
    • When applied, users can edit data directly in-place within the view.
    • Users must have edit permissions on the item

    • Field must be one of the supported types

    Note: Inline editing works only for these field types:

    • Single line of text
    • Multiple lines of text (plain text only, no rich text)
    • Number
    • Date & Time
    • Choice / Multi-choice
    • Person or Group (single & multiple)
    • Lookup