# How can we hundle which formaction to be performed based on slot value in custom action

**URL:** <https://forum.rasa.com/t/how-can-we-hundle-which-formaction-to-be-performed-based-on-slot-value-in-custom-action/39365>\
**Category:** Rasa Open Source\
**Created:** [January 22, 2021, 2:13pm UTC](https://forum.rasa.com/t/how-can-we-hundle-which-formaction-to-be-performed-based-on-slot-value-in-custom-action/39365 "2021-01-22T14:13:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![faiza\_conte](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@faiza\_conte](https://forum.rasa.com/u/faiza_conte)\
**Post date:** [January 22, 2021, 2:13pm UTC](https://forum.rasa.com/t/how-can-we-hundle-which-formaction-to-be-performed-based-on-slot-value-in-custom-action/39365/1 "2021-01-22T14:13:05Z")

</div>

…I have issue

```auto
Assume I have this code
If slot_value=='something'   
         Dispatcher.utter_message(text="something" )

Elif slot_value =='something'

  Dispatcher.utter_message(template ="utter_somethig"

Elif slot_value =='something'

 Dispatcher.utter_message(action="action_something")

```

As u see in the code I can do a text , utter, and action display of the bot…but i want to perform a formaction based on slot value like different formaction based on slot value…how can we control that in a custom action???

---

<div class="post-metadata">

**Author:** ![jjuzl](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@jjuzl](https://forum.rasa.com/u/jjuzl)\
**Post date:** [January 25, 2021, 9:43am UTC](https://forum.rasa.com/t/how-can-we-hundle-which-formaction-to-be-performed-based-on-slot-value-in-custom-action/39365/2 "2021-01-25T09:43:52Z")

</div>

Hi @faiza_conte

You can trigger a followup action from within a custom action. Maybe these similar posts will help:

- [How to trigger an action from within another action?](http://forum.rasa.com/t/how-to-trigger-an-action-from-within-another-action/527)
- [How to call custom action from another custom action](http://forum.rasa.com/t/how-to-call-custom-action-from-another-custom-action/11649)

---

<div class="post-metadata">

**Author:** ![faiza\_conte](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@faiza\_conte](https://forum.rasa.com/u/faiza_conte)\
**Post date:** [January 25, 2021, 12:24pm UTC](https://forum.rasa.com/t/how-can-we-hundle-which-formaction-to-be-performed-based-on-slot-value-in-custom-action/39365/3 "2021-01-25T12:24:24Z")

</div>

@jjuzl…yes I seen some how to call an action like this

```auto
If slot_value=='something'
   Dispatcher.utter_message(action='action_something')
Elif slot_value=='something'
   Dispatcher.utter_message(I want it to perform a formaction here)

The formaction contains the action,active_loop and then active_loop to null or to deactivate in the story file..so how can we fit that in here)

```
