# FormAction issue

**URL:** <https://forum.rasa.com/t/formaction-issue/21414>\
**Category:** Rasa Open Source\
**Created:** [November 18, 2019, 4:12pm UTC](https://forum.rasa.com/t/formaction-issue/21414 "2019-11-18T16:12:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahichintha](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@mahichintha](https://forum.rasa.com/u/mahichintha)\
**Post date:** [November 18, 2019, 4:12pm UTC](https://forum.rasa.com/t/formaction-issue/21414/1 "2019-11-18T16:12:03Z")

</div>

Hello, I’m using FormAction, it is working fine for one time correctly but when i run the form again immediately at final i’m unable to get the utterance action from the domain.Can anyone please help me.

**Actual output:**

User:Book an appointment Bot:Docor\n Hospital User:Doctor Bot:(select option)Dr.Mahi,Dr.chihaya User:Dr.Mahi Bot:select a date User:19-11-2019 Bot:Here are the details:Dr.Mahi,19-11-2019 \n Do you want to continue?1)Yes2)No User:Yes Bot:Appointment booked User:Book an appointment Bot:Docor\n Hospital User:Doctor Bot:(select option)Dr.Mahi,Dr.chihaya User:Dr.Mahi Bot:select a date User:19-11-2019 Bot:Here are the details:Dr.Mahi,19-11-2019 \n Sorry i did not get that

**Expected output:** User:Book an appointment Bot:Docor\n Hospital User:Doctor Bot:(select option)Dr.Mahi,Dr.chihaya User:Dr.Mahi Bot:select a date User:19-11-2019 Bot:Here are the details:Dr.Mahi,19-11-2019 \n Do you want to continue?1)Yes2)No User:Yes Bot:Appointment booked User:Book an appointment Bot:Docor\n Hospital User:Doctor Bot:(select option)Dr.Mahi,Dr.chihaya User:Dr.Mahi Bot:select a date User:19-11-2019 Bot:Here are the details:Dr.Mahi,19-11-2019 \n Do you want to continue?1)Yes2)No User:Yes Bot:Appointment booked

**Stories.md:**

## book appointment

- book\_appointment
  - book\_appointment\_form
  - form{“name”: “book\_appointment\_form”}
  - form{“name”: “null”}
  - utter\_booking\_confirmation

- affirm
  - action\_appointment\_confirmation

## book appointment 1

- book\_appointment
  - book\_appointment\_form
  - form{“name”: “book\_appointment\_form”}
  - form{“name”: “null”}
  - utter\_booking\_confirmation

- deny
  - action\_appointment\_confirmation

---

<div class="post-metadata">

**Author:** ![grass-of-sky](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/grass-of-sky/32/5903_2.png) [@grass-of-sky](https://forum.rasa.com/u/grass-of-sky)\
**Post date:** [November 19, 2019, 1:00am UTC](https://forum.rasa.com/t/formaction-issue/21414/2 "2019-11-19T01:00:28Z")

</div>

Can you tidy your format of “Actual output:” and “Expected output”? thank you.

---

<div class="post-metadata">

**Author:** ![mahichintha](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@mahichintha](https://forum.rasa.com/u/mahichintha)\
**Post date:** [November 19, 2019, 5:02am UTC](https://forum.rasa.com/t/formaction-issue/21414/3 "2019-11-19T05:02:06Z")

</div>

output[expected\_output.txt](https://forum.rasa.com/uploads/short-url/83J64UBCYjMiJXgQnWs9WWX4Z0N.txt) (6.4 KB) [actual\_output.txt](https://forum.rasa.com/uploads/short-url/hQv3sXYlM4E9TWDx6NmGUTatAvn.txt) (6.3 KB)

---

<div class="post-metadata">

**Author:** ![durashi](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/durashi/32/6143_2.png) [@durashi](https://forum.rasa.com/u/durashi)\
**Post date:** [November 19, 2019, 5:16am UTC](https://forum.rasa.com/t/formaction-issue/21414/4 "2019-11-19T05:16:00Z")

</div>

can you post your form action class

---

<div class="post-metadata">

**Author:** ![grass-of-sky](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/grass-of-sky/32/5903_2.png) [@grass-of-sky](https://forum.rasa.com/u/grass-of-sky)\
**Post date:** [November 19, 2019, 5:20am UTC](https://forum.rasa.com/t/formaction-issue/21414/6 "2019-11-19T05:20:57Z")

</div>

maybe you can try use ‘action\_restart’, like:

```auto
## book appointment
* book_appointment
    - book_appointment_form
    - form{“name”: “book_appointment_form”}
    - form{“name”: “null”}
    - utter_booking_confirmation
* affirm
    - action_appointment_confirmation
    - action_restart

```

---

<div class="post-metadata">

**Author:** ![mahichintha](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@mahichintha](https://forum.rasa.com/u/mahichintha)\
**Post date:** [November 19, 2019, 6:33am UTC](https://forum.rasa.com/t/formaction-issue/21414/8 "2019-11-19T06:33:31Z")

</div>

Thank you, it’s solved

---

<div class="post-metadata">

**Author:** ![grass-of-sky](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/grass-of-sky/32/5903_2.png) [@grass-of-sky](https://forum.rasa.com/u/grass-of-sky)\
**Post date:** [November 19, 2019, 7:12am UTC](https://forum.rasa.com/t/formaction-issue/21414/9 "2019-11-19T07:12:51Z")

</div>

you are welcome

---

<div class="post-metadata">

**Author:** ![mahichintha](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@mahichintha](https://forum.rasa.com/u/mahichintha)\
**Post date:** [November 25, 2019, 6:10am UTC](https://forum.rasa.com/t/formaction-issue/21414/10 "2019-11-25T06:10:15Z")

</div>

hi, when i kept action\_restart one time it is working fine but again it is getting the same problem. When i used version rasa\_core==0.12.3 and rasa\_nlu==0.13.7 the form is working corectly,but when i upgraded the version to rasa\_core==0.14.5 and rasa\_nlu==0.15.1 it is getting the above problem

---

<div class="post-metadata">

**Author:** ![grass-of-sky](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/grass-of-sky/32/5903_2.png) [@grass-of-sky](https://forum.rasa.com/u/grass-of-sky)\
**Post date:** [November 26, 2019, 5:06am UTC](https://forum.rasa.com/t/formaction-issue/21414/11 "2019-11-26T05:06:44Z")

</div>

Do you retrain your model
