# How do I disable user input when buttons are active?

**URL:** <https://forum.rasa.com/t/how-do-i-disable-user-input-when-buttons-are-active/36418>\
**Category:** Rasa Open Source\
**Created:** [October 29, 2020, 1:03pm UTC](https://forum.rasa.com/t/how-do-i-disable-user-input-when-buttons-are-active/36418 "2020-10-29T13:03:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfkarch](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@mfkarch](https://forum.rasa.com/u/mfkarch)\
**Post date:** [October 29, 2020, 1:03pm UTC](https://forum.rasa.com/t/how-do-i-disable-user-input-when-buttons-are-active/36418/1 "2020-10-29T13:03:00Z")

</div>

I am trying to implement a user guide thing where users can click buttons to navigate the guide. here is custom action for it:

```
class ActionGuideToNewUsers(Action):
def name(self) -> Text:
    return "action_guide_to_new_users"

async def run(
        self,
        dispatcher: CollectingDispatcher,
        tracker: Tracker,
        domain: Dict[Text, Any]
) -> List[Dict[Text, Any]]:
    name = "Airaj" # Fetch from DB
    buttons = [{"title": "Yes", "payload": "/guide"}, {"title": "No", "payload": "/deny_guide"}]
    message = "Hey {}! Would you like to know about our services?".format(name)
    custom = [{"input_type": "disable", "exit_button": "false"}]
    dispatcher.utter_message(text=message, buttons=buttons, elements=custom)
    return []

```

The issue arises when users enter text instead of clicking the button, so how can I disable text input when buttons are active? I am using Rasa 2.0.2, Rasa-SDK 2.0.0 and Rasa-x 0.33 to test things out.

Thanks!

---

<div class="post-metadata">

**Author:** ![sugarshock](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sugarshock/32/9126_2.png) [@sugarshock](https://forum.rasa.com/u/sugarshock)\
**Post date:** [October 30, 2020, 8:50am UTC](https://forum.rasa.com/t/how-do-i-disable-user-input-when-buttons-are-active/36418/2 "2020-10-30T08:50:37Z")

</div>

Pretty sure this is something you will have to implement in your frontend application.

All you can do with Rasa is make the bot not react to any manual inputs or send a “I’m sorry, please choose one of the options above” message

---

<div class="post-metadata">

**Author:** ![mfkarch](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@mfkarch](https://forum.rasa.com/u/mfkarch)\
**Post date:** [October 30, 2020, 9:09am UTC](https://forum.rasa.com/t/how-do-i-disable-user-input-when-buttons-are-active/36418/3 "2020-10-30T09:09:10Z")

</div>

I’ll consider this as a solution, thanks! 🙂
