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
- Create a new list
- Open it through Microsoft List hub or add "?env=WebViewList" at the end of the URL
- Add a Person type column
- Add a new item
- 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
- 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: