This usually happens when branch-specific logic has not been fully configured for the question in the database.

To ensure that questions are displayed and included in download results for a specific branch, follow these steps:

✅ Required Setup

  1. In the `fw_questionnairedetails` table:
    • Add the field `branchid` (if not already present).
    • If `branchid = 0`, the question is shown for all branches.
    • If `branchid = [specific branch ID]`, the question will appear only for that branch.
  1. In the `fw_branchquestions` table:
    • Ensure an entry exists for the relevant `qdetailid` and the correct `branchid`.
    • The `status` value for that entry must be set to 1 (active).

📝 Notes

📌 Example Scenario

A question is correctly visible in the questionnaire for Branch A, but does not appear in the Excel download.
✔️ Check `fw_branchquestions` for that `qdetailid` and confirm:
- There is a row with the correct `branchid`
- `status = 1`