Using Switch in Switch Component:Invalid value found for property 'type'.
1

As per whatsapp flow documentation Switch component is allowed inside switch Invalid value found for property 'type'. { "type": "Switch", "value": "${form.firstelement}", "cases": { "text": [ { "type": "Switch",

cases (required) Map of Array of Components Each property is a key (string) that maps to an Array of Components. When the value matches the key, it renders its array of components. Allowed components: "TextHeading", "TextSubheading", "TextBody", "TextCaption", "CheckboxGroup", "DatePicker", "Dropdown", "EmbeddedLink", "Footer", "Image", "OptIn", "RadioButtonsGroup", "Switch", "TextArea", "TextInput".

Ashish
Đã hỏi khoảng 3 tháng trước
Câu trả lời được chọn
1

Hey Ashish, sorry about the error in the docs. Currently switch inside switch is not supported. We'll update the error in the docs. Bear in mind that soon some new features will come to make it easier to create such conditionals, so maybe even the switch component inside another switch component won't be needed anymore. Hope I've answered your question.

9 tháng 10 lúc 05:16
Flávio