Forum Discussion
Beth_Culpepper
Sep 06, 2022Brass Contributor
Add date created/entered to JSON code for SharePoint list
I borrowed (and manipulated a bit) this JSON code from github. This was originally called a praise card. And I would like to add the date that the "praise" was given...basically add the date create...
Expiscornovus
Sep 07, 2022Iron Contributor
Hi Beth_Culpepper,
What value does the date need to be, today's date? Or do you have a separate column in your list which you want to reference in your card view? And where in the card do you want to display it?
Btw, do you have a link to the Github repo?
Beth_Culpepper
Sep 07, 2022Brass Contributor
Hi!
The date needs to be today's date...as in the day that the item is created. I assume we could reference the Created column but I don't know how to enter that into the JSON code to make it appear. And ideally, the upper left hand corner has space for it. 🙂
Here's the link to the github: https://github.com/pnp/List-Formatting/tree/master/view-samples/praise-cards
The date needs to be today's date...as in the day that the item is created. I assume we could reference the Created column but I don't know how to enter that into the JSON code to make it appear. And ideally, the upper left hand corner has space for it. 🙂
Here's the link to the github: https://github.com/pnp/List-Formatting/tree/master/view-samples/praise-cards