SharePoint / SharePoint/sp-dev-docs

setValue not working in Microsoft Lists

Open
#9,555 14 comments 1 reaction 1 assignee View on GitHub

@Amey-MSFT is already working on this.

Since Jun 23, 2025.

area:list-formatting type:bug-confirmed
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

Description

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

Declarative list formatting

Developer environment

None

What browser(s) / client(s) have you tested
  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)
Additional environment details
  • browser version: Chrome 122.0.6261.95 (Official build) (64 bit)
Describe the bug / error

setValue and all related capabilities are completely ignored in Microsoft Lists (browser version).

Conversely, in SharePoint user interface and Microsoft Lists PWA (Progressive Web App) everything works fine.

You can read about this bug also here in Microsoft 365 PnP Repository, where a user reported that setValue was not working anymore as expected.

Steps to reproduce
  1. Create a new list
  2. Open it through Microsoft List hub or add "?env=WebViewList" at the end of the URL
  3. Add a Person type column
  4. Add a new item
  5. Apply a JSON column formatting to the person column created before. You can use this sample stored in Microsoft Official Repository on GitHub, to react and display users who have reacted to a specific item: https://raw.githubusercontent.com/pnp/List-Formatting/master/column-samples/multi-person-reaction/multi-person-reaction.json
  6. setValue will not work as expected, being completely ignored by Microsoft Lists (browser version).
Expected behavior

setValue should be recognized in Microsoft Lists so that "formatters can render action buttons which modify the item internally without opening editors or forms" as explained in Microsoft Learn website here: https://learn.microsoft.com/sharepoint/dev/declarative-customization/formatting-advanced#set-multiple-field-values-of-an-item-using-customrowaction

Here is a gif animation of the expected behaviour:

setValue behaviour

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.