Forum Discussion
VeeExcelLearn
Aug 24, 2022Brass Contributor
SharePoint List Button
How do I make a button or some sort of an event where if I press a button it will clear a column item in a row. For example, in the visual below I want to press a button that would clear the word "S...
ganeshsanap
Aug 25, 2022MVP
VeeExcelLearn You can use JSON column formatting for your requirements to clear value in "Stop" column. Use JSON in this format:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"txtContent": "Clear Stop",
"customRowAction": {
"action": "setValue",
"actionInput": {
"Stop": ""
}
}
}
Documentation: SharePoint column formatting
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.