# Selecting any option in a dynamic Whatsapp list always leads to the fallback flow

**URL:** <https://community.yellow.ai/t/selecting-any-option-in-a-dynamic-whatsapp-list-always-leads-to-the-fallback-flow/3176>\
**Category:** Studio\
**Tags:** builder\
**Created:** [December 16, 2022, 1:15pm UTC](https://community.yellow.ai/t/selecting-any-option-in-a-dynamic-whatsapp-list-always-leads-to-the-fallback-flow/3176 "2022-12-16T13:15:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sivashankar\_Ramesh](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/sivashankar_ramesh/32/1019_2.png) [@Sivashankar\_Ramesh](https://community.yellow.ai/u/Sivashankar_Ramesh)\
**Post date:** [December 16, 2022, 1:15pm UTC](https://community.yellow.ai/t/selecting-any-option-in-a-dynamic-whatsapp-list-always-leads-to-the-fallback-flow/3176/1 "2022-12-16T13:15:09Z")

</div>

I built a simple API to dynamically generate the list . The list was generated with right information but whenever I select a option it defaults to fallback flow.

##JSON used to generate this Whats-App list

```auto
{
        "optionText": "Click on the button below to view active Projects",
        "options": [
            {
                "options": [
                    {
                        "description": "Tensorflow is an open-source software library by Google ",
                        "text": "tensorflow",
                        "title": "Tensorflow"
                    },
                    {
                        "description": "ncnn is a high-performance neural network inference framework",
                        "text": "ncnn",
                        "title": "NCNN"
                    }
                ],
                "section": "AI"
            },
            {
                "options": [
                    {
                        "description": "A declarative, efficient, and flexible JavaScript library ",
                        "text": "react",
                        "title": "React"
                    },
                    {
                        "description": "a progressive, incrementally-adoptable JavaScript framework",
                        "text": "vue",
                        "title": "Vue"
                    }
                ],
                "section": "Fontend"
            },
            {
                "options": [
                    {
                        "description": "a JavaScript runtime for the backend",
                        "text": "node",
                        "title": "Node js"
                    }
                ],
                "section": "OTHER"
            }
        ],
        "title": "Fundraisers"
    }

```

Screenshot of the workflow and Whatsapp

 ![Screenshot from 2022-12-16 18-40-02](https://canada1.discourse-cdn.com/flex035/uploads/yellowmessenger1/original/2X/7/78f5ea65180bee4413e8608e10ffcd95e6c3cf71.jpeg)

---

<div class="post-metadata">

**Author:** ![Subhrajit\_Gupta](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/subhrajit_gupta/32/1680_2.png) [@Subhrajit\_Gupta](https://community.yellow.ai/u/Subhrajit_Gupta)\
**Post date:** [December 16, 2022, 3:00pm UTC](https://community.yellow.ai/t/selecting-any-option-in-a-dynamic-whatsapp-list-always-leads-to-the-fallback-flow/3176/2 "2022-12-16T15:00:05Z")

</div>

Apply validator function through fallback, please.  
Check the user message clicked/typed after the prompt has been rendered.  
Take the button texts and their aliases in an array and check if the user message exists in the array and validate.

Hope it helps!

---

<div class="post-metadata">

**Author:** ![Jayesh\_Rana](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/jayesh_rana/32/943_2.png) [@Jayesh\_Rana](https://community.yellow.ai/u/Jayesh_Rana)\
**Post date:** [December 16, 2022, 6:59pm UTC](https://community.yellow.ai/t/selecting-any-option-in-a-dynamic-whatsapp-list-always-leads-to-the-fallback-flow/3176/3 "2022-12-16T18:59:32Z")

</div>

Hey @Sivashankar_Ramesh you need to write a function in which you will take a variable and store the response of the user that he has select from the WA list and compare it with the API response.

---

<div class="post-metadata">

**Author:** ![Sivashankar\_Ramesh](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/sivashankar_ramesh/32/1019_2.png) [@Sivashankar\_Ramesh](https://community.yellow.ai/u/Sivashankar_Ramesh)\
**Post date:** [December 19, 2022, 10:43am UTC](https://community.yellow.ai/t/selecting-any-option-in-a-dynamic-whatsapp-list-always-leads-to-the-fallback-flow/3176/4 "2022-12-19T10:43:18Z")

</div>

Thanks. I got it working thought fallback but don’t understand that is other option for

---

<div class="post-metadata">

**Author:** ![Subhrajit\_Gupta](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/subhrajit_gupta/32/1680_2.png) [@Subhrajit\_Gupta](https://community.yellow.ai/u/Subhrajit_Gupta)\
**Post date:** [December 19, 2022, 11:46am UTC](https://community.yellow.ai/t/selecting-any-option-in-a-dynamic-whatsapp-list-always-leads-to-the-fallback-flow/3176/5 "2022-12-19T11:46:46Z")

</div>

Sorry, Can you elaborate clearly?

---

<div class="post-metadata">

**Author:** ![gautham](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/gautham/32/1593_2.png) [@gautham](https://community.yellow.ai/u/gautham)\
**Post date:** [December 19, 2022, 11:59am UTC](https://community.yellow.ai/t/selecting-any-option-in-a-dynamic-whatsapp-list-always-leads-to-the-fallback-flow/3176/6 "2022-12-19T11:59:54Z")

</div>

@Sivashankar_Ramesh When we pass values dynamically, there is no branching of options supported in the UI.

Therefore, we will need to always handle this through the fallback followed by a condition node

if _selected option_ → perform X  
else → perform Y

---

<div class="post-metadata">

**Author:** ![Sivashankar\_Ramesh](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/sivashankar_ramesh/32/1019_2.png) [@Sivashankar\_Ramesh](https://community.yellow.ai/u/Sivashankar_Ramesh)\
**Post date:** [December 19, 2022, 12:11pm UTC](https://community.yellow.ai/t/selecting-any-option-in-a-dynamic-whatsapp-list-always-leads-to-the-fallback-flow/3176/7 "2022-12-19T12:11:47Z")

</div>

Understood 👍 . I was able to get it working
