SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.02k forks source link

[!FieldName] references not supported in new SharePoint Lists Experience #9854

Open wwcoop opened 3 months ago

wwcoop commented 3 months ago

[!FieldName] references are not working in the new SharePoint Lists Experience. Using this type of reference results in the JSON formatting not rendering.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Fedes365 commented 3 months ago

@wwcoop

I've used [!FieldName.DisplayName], both in a document library and in a list of the "New" Microsoft Lists as explained here. Here is the result below with a very basic example. Does it work for you with this different reference?

immagine

wwcoop commented 3 months ago

Yes - it worked for me both on library and list with [!FIELDNAME.DisplayName]

I'm not sure what my issue was yesterday. In any case, please close this request.

Thank you for your time Federico.

There is another issue that I am sure is a bug with JSON in regard to customCardProps JSON formatting. Not sure if you can do anything to escalate, but this for sure needs an adjustment:

I'm happy to formally post this to Github if needed (if you let me know where it should be posted).

https://feedbackportal.microsoft.com/feedback/idea/6c1baa5d-e94c-ef11-b4ad-000d3a0e6a3a

Cheers

Will Cooper

On Wed, Aug 14, 2024 at 5:44 AM Federico Sapia @.***> wrote:

@wwcoop https://github.com/wwcoop

I've used [!FieldName.DisplayName], both in a document library and in a list of the "New" Microsoft Lists as explained here https://learn.microsoft.com/sharepoint/dev/declarative-customization/formatting-syntax-reference#fieldname-1. Here is the result below with a very basic example. Does it work for you with this different reference?

immagine.png (view on web) https://github.com/user-attachments/assets/c8c5834f-1012-4928-82c1-fdb62eb29f0e

— Reply to this email directly, view it on GitHub https://github.com/SharePoint/sp-dev-docs/issues/9854#issuecomment-2288312832, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANC6TVQTQNH7JZFMZ4BALN3ZRMRJHAVCNFSM6AAAAABMMPQKKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBYGMYTEOBTGI . You are receiving this because you were mentioned.Message ID: @.***>

Fedes365 commented 3 months ago

@wwcoop I'm not a member of sp-dev-docs staff so I cannot close this issue 😅. I think you can autonomously, there should be a button you can click to close it.

With regard to your JSON code of custom hovercards, I suggest that you open an issue here so that somebody can have a deeper look at it and find a possible workaround.

See you, Federico

tpodugu-ms commented 3 months ago

@wwcoop @Fedes365 I see the extra height being added to the custom card. Will work on this and update you the ETA.

wwcoop commented 3 months ago

Fantastic! Thanks @tpodugu-ms ! @Fedes365

tpodugu-ms commented 3 months ago

@wwcoop @Fedes365 Issue has been fixed and should be available in prod in 2 weeks.

wwcoop commented 3 months ago

@tpodugu-ms @Fedes365 Great! Thanks for the fix. Glad to see this solved! Cheers

jgupta-msft commented 1 month ago

@wwcoop : I hope this is fixed for you know.

wwcoop commented 1 month ago

@jgupta-msft Yes - it looks good. Thanks for solving this tricky issue. Thanks for your time and effort. Nice work!