# How to Fix the MISSING_FOOTER_IN_SWITCH_BRANCHES Error in WhatsApp Flows
Author: Prashant Jangid
Author URL: https://www.heltar.com/blogs/author/prashant-jangid
Published: 2025-07-01
Category: Troubleshoot
Category URL: https://www.heltar.com/blogs/category/troubleshoot
Tags: WhatsApp Flows Error
Tag URLs: WhatsApp Flows Error (https://www.heltar.com/blogs/tag/whatsapp-flows-error)
URL: https://www.heltar.com/blogs/how-to-fix-the-missingfooterinswitchbranches-error-in-whatsapp-flows-cmckwbsec002m2c4abpj53wdh

If you're building dynamic flows using WhatsApp API and run into the error:

**MISSING\_FOOTER\_IN\_SWITCH\_BRANCHES**

it means that one or more branches of your **Switch** component are missing a **Footer**, even though at least one branch includes it.

## Quick Fix (TL;DR)

Make sure all branches (case1, case2, case3, etc.) inside a **Switch** include a **Footer** component if any one of them has it. If you need a button like **"Submit"** or **"Next"** in one case, add it to all others, even if it’s a dummy one.

## Why This Happens

The Screen Builder enforces a consistent user experience. If one switch branch has a footer and others don’t, it can break visual flow or user interaction logic. So, the validator throws this error to maintain UI uniformity.

## Broken Example (Triggers the Error)

```
{
  "type": "Switch",
  "value": "${data.ti}",
  "cases": {
    "case1": [],
    "case2": [
      {
        "type": "Footer",
        "label": "Submit",
        "on-click-action": {
          "name": "complete",
          "payload": {}
        }
      }
    ],
    "case3": [
      {
        "type": "TextInput",
        "label": "input",
        "name": "Add name"
      }
    ]
  }
}
```

Here, only case2 includes a **Footer**. case1 and case3 don’t, so the flow throws an error.

## Fixed Example

To fix it, add a **Footer** to every case:

```
"cases": {
  "case1": [
    {
      "type": "Footer",
      "label": "Continue",
      "on-click-action": {
        "name": "next",
        "payload": {}
      }
    }
  ],
  "case2": [
    {
      "type": "Footer",
      "label": "Submit",
      "on-click-action": {
        "name": "complete",
        "payload": {}
      }
    }
  ],
  "case3": [
    {
      "type": "TextInput",
      "label": "input",
      "name": "Add name"
    },
    {
      "type": "Footer",
      "label": "Next",
      "on-click-action": {
        "name": "continue",
        "payload": {}
      }
    }
  ]
}
```

Even if some footers are functionally minimal, including them avoids build-time validation errors.

### Pro Tip

If your logic doesn't require user action in some branches, add a disabled or hidden footer to bypass the error cleanly, or simply duplicate the most common footer across all cases.

The MISSING\_FOOTER\_IN\_SWITCH\_BRANCHES error is easy to resolve once you know the rule: all or none when it comes to footers inside a **Switch**.

For more troubleshooting insights related to WhatsApp Business API, check out [heltar.com/blogs](https://www.heltar.com/blogs).


---
This blog is powered by Superblog. Visit https://superblog.ai to know more.
---

