pnp / List-Formatting

List Formatting Samples for use in SharePoint and Microsoft Lists
https://pnp.github.io/List-Formatting/
MIT License
1.7k stars 822 forks source link

Sample - yesno-icon-color not working as intended #797

Closed puisitis closed 1 month ago

puisitis commented 1 month ago

Sample - yesno-icon-color

Hello, I have been applying this sample to some of my lists. It worked fine for like past 2 months, but stopped working on 06.05.2024. Since I have crated new test list to check, if the behavior was going to be present in the new one.

GIF of the button not working. I took the code from the repository and just changed the icon to Train. not working first one { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "style": { "margin": "5px" }, "children": [ { "elmType": "div", "style": { "width": "40px", "height": "40px", "border-radius": "50%", "display": "flex", "justify-content": "center", "align-items": "center", "font-size": "20px", "cursor": "pointer" }, "attributes": { "iconName": "Rocket" }, "customRowAction": { "action": "setValue", "actionInput": { "uno": "=if(@currentField , '0' , '1' )" } } } ] }

I can change the value via the Edit all section or when creating a new item in the list. it works in edit all

I have tried Chrome, Firefox and Edge, all are having the same issue. I have tried to do it from other colleague PC's and still no luck, nothing happens for anyone anymore.

Thank you!

tecchan1107 commented 1 month ago

Hi @puisitis ! I tried it in multiple tenants.

In tenants where the newer? Microsoft Lists (with icons in column names) are available, I couldn't update YesNo columns😣 newer

However, in the older? Microsoft Lists (without icons in column names), I was able to update YesNo columns. older

I think this issue is probably a bug in the product and difficult for the community to resolve. I am sorry, could you please report this issue to Microsoft by submitting an issue in the following repository? https://github.com/SharePoint/sp-dev-docs

puisitis commented 1 month ago

Hi @tecchan1107 , thank you very much for the reply! I will post the issue there. Is it possible to force use the old version somehow?

tecchan1107 commented 1 month ago

I will post the issue there.

Thank you!

Is it possible to force use the old version somehow?

Ummm... sorry, I don't know😖

tecchan1107 commented 1 month ago

I have submitted an issue on my end. Sorry if it was in the process of being created. https://github.com/SharePoint/sp-dev-docs/issues/9701

tecchan1107 commented 1 week ago

Hi @puisitis . I am pleased to inform you that this problem was resolved in my environment. https://github.com/SharePoint/sp-dev-docs/issues/9701