Skip to content

setValue not working in Microsoft Lists #9555

Open
@Fedes365

Description

@Fedes365

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:list-formattingCategory: View, row & column formatting with JSONtype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions