# Struggling to trigger a form

**URL:** <https://forum.rasa.com/t/struggling-to-trigger-a-form/63203>\
**Category:** Rasa Open Source\
**Created:** [August 28, 2024, 10:50pm UTC](https://forum.rasa.com/t/struggling-to-trigger-a-form/63203 "2024-08-28T22:50:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ayman](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@ayman](https://forum.rasa.com/u/ayman)\
**Post date:** [August 28, 2024, 10:50pm UTC](https://forum.rasa.com/t/struggling-to-trigger-a-form/63203/1 "2024-08-28T22:50:22Z")

</div>

Hi, I have two forms that I am using to collect information.

The forms are called `my_form` and `cc_form`. The `my_form` is taking user input and has an action `utter_ask_payment`. The user is meant to respond with `1` or `2` and this value will set to the `payment_choice` slot.

In the rule `Activate CC Form` I am using `condition` to check if the value of `payment_choice` is `1` or not. If it is, I want the `cc_form` to start seamlessly. This is what I have been expecting to happen but it’s not working.

The `payment_choice` slot is being set to `1` perfectly but the `cc_form` is not starting. I would appreciate if anyone can correct my code. Also this is the `rules.yml` file. I don’t have anything in `stories.yml` file.

Specs:

- Windows 10
- Rasa Open Source
- Python 3.10

```auto
version: "3.1"

rules:
  - rule: Activate My Form
    steps:
      - intent: take_policy
      - action: my_form
      - active_loop: my_form

  - rule: Submit My Form
    condition:
      - active_loop: my_form
    steps:
      - action: my_form
      - active_loop: null
      - slot_was_set:
          - requested_slot: null
      - action: action_search_customer_policy
      - action: action_get_customer_policy
      - slot_was_set:
          - isPayable: true
      - action: utter_ask_payment
      - intent: inform

  - rule: Activate CC Form
    condition:
      - slot_was_set:
          - payment_choice: 1
    steps:
      - action: cc_form
      - active_loop: cc_form

  - rule: Submit CC Form
    condition:
      - active_loop: cc_form
    steps:
      - action: cc_form
      - active_loop: null
      - slot_was_set:
          - requested_slot: null
      - action: action_make_payment

```

---

_[View the full topic](https://forum.rasa.com/t/struggling-to-trigger-a-form/63203)._
