# How to Fix "MISSING_FOOTER_IN_IF_ELSE_BRANCHES" in WhatsApp Flow JSON
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-missingfooterinifelsebranches-in-whatsapp-flow-json-cmcksb79x00292c4asbb609g1

If you’re seeing the error **MISSING\_FOOTER\_IN\_IF\_ELSE\_BRANCHES**, here’s the quick fix:

**Solution:** Add a Footer component to every branch ( **then** and **else**) of the **If** block if a **Footer** is present in any one of them.

## Why this happens

In a Flow JSON screen, **Footer** components are used to trigger actions like submitting form data or completing a screen. If you place a **Footer** inside one branch ( **then** or **else**) of an **If** component but omit it from the other, the flow becomes incomplete and invalid.

For example:

```
{
  "type": "If",
  "condition": "${data.ti}",
  "then": [
    {
      "type": "Footer",
      "label": "Submit",
      "on-click-action": {
        "name": "complete",
        "payload": {}
      }
    }
  ]
}
```

This causes an error because the **else** branch is missing a **Footer**.

## The correct structure

To fix it, always provide a **Footer** in both branches like this:

```
{
  "type": "If",
  "condition": "${data.ti}",
  "then": [
    {
      "type": "TextInput",
      "label": "Enter value",
      "name": "custom_value"
    },
    {
      "type": "Footer",
      "label": "Submit",
      "on-click-action": {
        "name": "complete",
        "payload": {}
      }
    }
  ],
  "else": [
    {
      "type": "Text",
      "value": "No input required"
    },
    {
      "type": "Footer",
      "label": "Continue",
      "on-click-action": {
        "name": "complete",
        "payload": {}
      }
    }
  ]
}
```

## Pro tip

If a **Footer** is missing from one branch, your flow might get stuck or fail to complete. Whenever you're working with **If** components, double-check both branches. If you add a **Footer** to one side, mirror it on the other.

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.
---

