Quick Fix
Ensure the value of min-selected-items is less than or equal to max-selected-items for components like CheckboxGroup.
If you're building flows for WhatsApp experiences using the Meta platform, you might run into this error:
MIN_VALUE_GREATER_THAN_MAX
min-selected-items cannot be greater than max-selected-items for component_type CheckboxGroup cbg.
This usually happens when you're setting validation ranges - like minimum and maximum selected items—on UI components such as checkboxes, dropdowns, or sliders.
What Went Wrong?
Here’s the problematic config:
{
"type": "CheckboxGroup",
"name": "cbg",
"min-selected-items": 3,
"max-selected-items": 2,
...
}
In the above code:
min-selected-items is set to 3
max-selected-items is set to 2
That’s logically invalid. A user cannot be required to select at least 3 options when only 2 are allowed at most.
The Fix
Simply reverse or adjust the values so that min-selected-items <= max-selected-items. For example:
{
"type": "CheckboxGroup",
"name": "cbg",
"min-selected-items": 1,
"max-selected-items": 3,
...
}
Now, the form allows users to select at least 1 and at most 3 items which is a valid range.
For more troubleshooting insights related to WhatsApp Business API, check out heltar.com/blogs.