Forum Discussion

roktoro's avatar
roktoro
Copper Contributor
Mar 16, 2024

How to add button in footerFormatter of SharePoint List layout with JSON?

As per documentation footerFormatter is a JSON object that defines the format for group and list footer. The schema of this JSON object is identical to the schema of a column format (and that of rowFormatter). It is valid in 'List' and 'Compact List' layouts.

 

I have tried to customize my List footer with a button which triggers flow when clicked. It gets rendered fine, but doesn't execute any action - have tried even different action values for customRowAction. Any ideas why button doesn't work in footerFormatter, any possible workarounds? 

 

My JSON:

{
 "$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
 "hideFooter": false,
 "footerFormatter": {
  "elmType": "button",
  "txtContent": "Start My Flow",
  "customRowAction": {
   "action": "executeFlow",
   "actionParams": "{\"id\": \"flow ID\"}"
  }
 }
}

 

Resources