Forum Discussion
Samson1915
Jun 22, 2023Copper Contributor
Allow users to only edit one of the fields in a list
I have a list that has multiple fields. I only want users to be able to edit one of the fields and I want them to be able to do by directly clicking the items (maybe through a button?) without going ...
SvenSieverding
Jun 22, 2023Bronze Contributor
Hi Samson1915 ,
do you mean like inline editing?
You can achieve that by applying this json formatting to all of the columns you want to make editable.
{
"elmType": "div",
"inlineEditField": "=@currentField",
"txtContent": "=@currentField"
}
See more information here https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/formatting-advanced#inline-editing
Or you can do some more advanced stuff, like this sample that provides some buttons that set the approval state of an item
https://github.com/pnp/list-formatting/tree/master/column-samples/approval-buttons-setValue-status-user
Best Regards,
Sven