# Let user modify slot in form after the submit message

**URL:** <https://forum.rasa.com/t/let-user-modify-slot-in-form-after-the-submit-message/26549>\
**Category:** Rasa Open Source\
**Created:** [March 25, 2020, 2:38pm UTC](https://forum.rasa.com/t/let-user-modify-slot-in-form-after-the-submit-message/26549 "2020-03-25T14:38:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![small\_bob](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@small\_bob](https://forum.rasa.com/u/small_bob)\
**Post date:** [March 25, 2020, 2:38pm UTC](https://forum.rasa.com/t/let-user-modify-slot-in-form-after-the-submit-message/26549/1 "2020-03-25T14:38:38Z")

</div>

Hi !

I was wondering how we let the user change/modify the slot value in a form once he sees the submit message.

Here is a simple example of the conversation flow I wish to achieve:

**Bot** : Here is the information you have given me: - name: bob - age: 18 - favourite color: blue

```
   Do you wish to modify any information (yes/no)?

```

**User** : yes

**Bot** : Which information would you like to modify?

**User** : the age

**Bot** : could you tell me how old you are?

**User** : I’m 23

**Bot** : Here is the information you have given me: - name: bob - age: **23** - favourite color: blue

```
   Do you wish to modify any information (yes/no)?

```

**User** : no

* * *

The first bot message is the submit message of the form using {} to reference the slot values.

I can’t seem to find the coding logic for the slot modification part. Do we stay within the formaction or do we have to create another custom action? Can this be managed in a story configuration?

Looking forward to hear your suggestions !

Best,

Bob

@akelad@mloubser

---

<div class="post-metadata">

**Author:** ![small\_bob](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@small\_bob](https://forum.rasa.com/u/small_bob)\
**Post date:** [March 25, 2020, 2:41pm UTC](https://forum.rasa.com/t/let-user-modify-slot-in-form-after-the-submit-message/26549/2 "2020-03-25T14:41:56Z")

</div>

When the bot asks the user his age, it’s actually reactivating the _ **utter\_ask\_age** _

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [March 26, 2020, 3:52pm UTC](https://forum.rasa.com/t/let-user-modify-slot-in-form-after-the-submit-message/26549/3 "2020-03-26T15:52:19Z")

</div>

hi bob! since you are asking the user explicitly if they want to make changes, it’s probably easiest to add do this by overriding the `required_slots` method:

1. add a `modifications` slot to the required slots
2. if `modifications` has value True, add two more slots to the required slots (name of slot to correct and the corrected value)
