Forum Discussion
customRowAction on Document Sets
- Oct 07, 2022
automan25 You can open the document set properties on button click using editProps action.
For example:
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "button", "txtContent": "View Properties", "customRowAction": { "action": "editProps" } }Output:
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.
automan25 You can open the document set properties on button click using editProps action.
For example:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"txtContent": "View Properties",
"customRowAction": {
"action": "editProps"
}
}Output:
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.
- automan25Oct 07, 2022Copper ContributorSo, that definitely works to open up the form in 'edit' mode. That may work in the end but I was hoping to find a way to open the form in 'view' mode instead.
- ganeshsanapOct 07, 2022MVP
automan25 Unfortunately, there is no action available in JSON formatting to open it in view mode.
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.
- AshishBaranwalNov 21, 2023Copper ContributorBit surprising , what would happen if the user doens't have edit rights on the document set. They will be forced to use the OOTB way.