# Activating different forms based on slot\_value for form switching case mentioned on Financial-Bot

**URL:** <https://forum.rasa.com/t/activating-different-forms-based-on-slot-value-for-form-switching-case-mentioned-on-financial-bot/57531>\
**Category:** Rasa Open Source\
**Created:** [March 12, 2023, 8:43am UTC](https://forum.rasa.com/t/activating-different-forms-based-on-slot-value-for-form-switching-case-mentioned-on-financial-bot/57531 "2023-03-12T08:43:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamsid](https://avatars.discourse-cdn.com/v4/letter/i/ecae2f/32.png) [@iamsid](https://forum.rasa.com/u/iamsid)\
**Post date:** [March 12, 2023, 8:43am UTC](https://forum.rasa.com/t/activating-different-forms-based-on-slot-value-for-form-switching-case-mentioned-on-financial-bot/57531/1 "2023-03-12T08:43:29Z")

</div>

I am trying to implement a form-switching case in my project. But I have many forms and writing individual stories for each form switching is hectic. So, I was looking for a way to write a custom action that considers some slot value say next\_form\_name and then dynamically start the form we got on next\_form\_name. I think it is possible by something like `next_form_name = tracker.get_slot("next_form_name") if next_form_name is not None: return [FollowupAction(next_form_name)]`

But issue is how can i set active\_loop part based on this same form value as we need to set active loop based on the form being activated? Is it possible to set active\_loop via custom action?

Or is there any other recommended way to do form-switching without having to write stories for individual case?

---

<div class="post-metadata">

**Author:** ![NikolaMr](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nikolamr/32/22347_2.png) [@NikolaMr](https://forum.rasa.com/u/NikolaMr)\
**Post date:** [March 13, 2023, 3:20pm UTC](https://forum.rasa.com/t/activating-different-forms-based-on-slot-value-for-form-switching-case-mentioned-on-financial-bot/57531/2 "2023-03-13T15:20:15Z")

</div>

For switching which slots are required there is dynamic form behavior in place. Take a look at [Forms](https://rasa.com/docs/rasa/forms/#dynamic-form-behavior).

Good luck!

---

<div class="post-metadata">

**Author:** ![Hawks55](https://avatars.discourse-cdn.com/v4/letter/h/ad7895/32.png) [@Hawks55](https://forum.rasa.com/u/Hawks55)\
**Post date:** [March 14, 2023, 5:50am UTC](https://forum.rasa.com/t/activating-different-forms-based-on-slot-value-for-form-switching-case-mentioned-on-financial-bot/57531/3 "2023-03-14T05:50:35Z")

</div>

There is every time same error found in value for form switching. can you give me some proper way to solve this error…

Thanks, [Next Employee Portal App](https://www.nextemployeeportal.com/)

---

<div class="post-metadata">

**Author:** ![willium6583](https://avatars.discourse-cdn.com/v4/letter/w/dec6dc/32.png) [@willium6583](https://forum.rasa.com/u/willium6583)\
**Post date:** [March 14, 2023, 6:29am UTC](https://forum.rasa.com/t/activating-different-forms-based-on-slot-value-for-form-switching-case-mentioned-on-financial-bot/57531/4 "2023-03-14T06:29:05Z")

</div>

Firstly, you must add the name of this action, action\_validate\_slot\_mappings , to the domain actions list. Note that you do not need to implement the name method in the custom action extending ValidationAction , since this is already implemented.

---

<div class="post-metadata">

**Author:** ![Hawks55](https://avatars.discourse-cdn.com/v4/letter/h/ad7895/32.png) [@Hawks55](https://forum.rasa.com/u/Hawks55)\
**Post date:** [March 15, 2023, 3:50am UTC](https://forum.rasa.com/t/activating-different-forms-based-on-slot-value-for-form-switching-case-mentioned-on-financial-bot/57531/5 "2023-03-15T03:50:21Z")

</div>

Thanks @willium6583 your suggestion is work for me. i got my solution once again thanks,

---

<div class="post-metadata">

**Author:** ![willium6583](https://avatars.discourse-cdn.com/v4/letter/w/dec6dc/32.png) [@willium6583](https://forum.rasa.com/u/willium6583)\
**Post date:** [March 15, 2023, 4:57am UTC](https://forum.rasa.com/t/activating-different-forms-based-on-slot-value-for-form-switching-case-mentioned-on-financial-bot/57531/6 "2023-03-15T04:57:15Z")

</div>

Works like a charm[!](https://www.ngsmedicare.us/)
