Issues to apply personalized json for "approve/reject" columns - SP List

Victor F 0 Reputation points
2023-01-13T13:15:29.75+00:00

Hi everyone.

I'm new to SP and .json synthax, so I'm facing some issues to apply this list formatting to my list:

[https://github.com/pnp/List-Formatting/blob/master/column-samples/approval-buttons-setValue-status-user/README.md

I created the approval column as caculated and pasted the .json file, but as it is a calculated column, which formula should I use? This are the instructions from the example:
User's image

I'm stucked in this very first step, since I don't know the right way to create this column.

Thanks!

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,063 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Haoyan Xue_MSFT 5,341 Reputation points Microsoft Employee
    2023-01-16T02:59:45.93+00:00

    Hi @Victor F,

    Here are steps:

    1.Create two choice columns,named Approval and ItemStatus (the default value is Pending) .

    User's image

    2.Format Approval column using approval-buttons-setValue-status-user.json.txt:

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.