sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

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

Open wwcoop opened this issue 1 year ago • 9 comments

[!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.

wwcoop avatar Aug 12 '24 16:08 wwcoop

@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

Fedes365 avatar Aug 14 '24 09:08 Fedes365

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: @.***>

wwcoop avatar Aug 14 '24 12:08 wwcoop

@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

Fedes365 avatar Aug 14 '24 12:08 Fedes365

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

tpodugu-ms avatar Aug 15 '24 08:08 tpodugu-ms

Fantastic! Thanks @tpodugu-ms ! @Fedes365

wwcoop avatar Aug 15 '24 11:08 wwcoop

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

tpodugu-ms avatar Aug 22 '24 04:08 tpodugu-ms

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

wwcoop avatar Aug 22 '24 13:08 wwcoop

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

jgupta-msft avatar Oct 09 '24 15:10 jgupta-msft

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

wwcoop avatar Oct 09 '24 15:10 wwcoop

Hello @wwcoop, Thank You for your patience. Is the issue resolved now?

Amey-MSFT avatar Apr 28 '25 09:04 Amey-MSFT

Hi @Amey-MSFT - yes this issue is resolved. There is another JSON formatting issue that I reported in recently to support that does not have resolution:

  • For a regular SharePoint list, go to list formatting, row formatting, advanced options.
  • Apply any border options such as top and bottom borders for a row
  • When you save out, no border options appear in the view

It looks like the border classes are applied in the HTML, but they are no longer rendered in the view. It seems this was a casualty of recent list UI updates. Border options did use to work, but somehow this broke as a result of updates. Other row formatting such as background colors still works, but not borders.

Can you investigate to see if this functionality can be restored?

wwcoop avatar Apr 28 '25 10:04 wwcoop

We are closing this issue for now. If the problem persists, feel free to reopen it or open a new one.

Amey-MSFT avatar Jul 04 '25 10:07 Amey-MSFT

Hi @Amey-MSFT - the original reported issue is resolved, but there is still this open issue I commented in thread:

  • For a regular SharePoint list, go to list formatting, row formatting, advanced options.
  • Apply any border options such as top and bottom borders for a row
  • When you save out, no border options appear in the view

It looks like the border classes are applied in the HTML, but they are no longer rendered in the view. It seems this was a casualty of recent list UI updates. Border options did use to work, but somehow this broke as a result of updates. Other row formatting such as background colors still works, but not borders.

Should I open a separate request? Thanks very much for your time and help!

wwcoop avatar Jul 04 '25 12:07 wwcoop