# Problem with slot list in forms

**URL:** <https://forum.rasa.com/t/problem-with-slot-list-in-forms/47896>\
**Category:** Rasa Open Source\
**Created:** [September 21, 2021, 5:58pm UTC](https://forum.rasa.com/t/problem-with-slot-list-in-forms/47896 "2021-09-21T17:58:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![elizandro.dalastra](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elizandro.dalastra](https://forum.rasa.com/u/elizandro.dalastra)\
**Post date:** [September 21, 2021, 5:58pm UTC](https://forum.rasa.com/t/problem-with-slot-list-in-forms/47896/1 "2021-09-21T17:58:52Z")

</div>

hello guys, to consolidate my knowledge in rasa i’m developing a bot for a pizzeria. To collect order information, I am using the form. Since a pizza can have up to 4 different flavors, I created a list type slot to store them. When the user types the desired flavors, the form stores the list in the “tops” slot, but on the next iteration of the form the list elements just disappear, does anyone know what might be going on?

here is the domain:

```auto
forms:
  order_form:
    required_slots:
      tops:
      - entity: tops
        type: from_entity
      size:
      - entity: size
        type: from_entity
      border:
      - type: from_text
entities:
- border
- drink
- size
- tops
slots:
  salutation:
    type: text
    influence_conversation: true
  tops:
    type: list
    influence_conversation: true
  requested_slot:
    type: any
    influence_conversation: false

```

here is the “tops” validation:

````auto
def validate_tops(
        self,
        slot_value: Any,
        dispatcher: CollectingDispatcher,
        tracker: Tracker,
        domain: DomainDict,
    ) -> Dict[Text, Any]:
        """Validate `pizza_type` value."""
        if len(slot_value) == 0:
            return {"tops": None}
        if len(slot_value) > 4:
            dispatcher.utter_message(text=f"Desculpe, só servimos pizzas de até 4 sabores")
            return {"tops": None}
        for top in slot_value:
            if top.lower() not in ALLOWED_PIZZA_TOPS:
                dispatcher.utter_message(text=f"Desculpe, não temos a opção { top }, você pode escolher entre {'/'.join(ALLOWED_PIZZA_TOPS)}.")
                return {"tops": None}
        dispatcher.utter_message(text=f"Ok! uma pizza de {'/'.join(slot_value)}.")
        return {"tops": slot_value}```
````

---

<div class="post-metadata">

**Author:** ![anca](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/anca/32/14540_2.png) [@anca](https://forum.rasa.com/u/anca)\
**Post date:** [September 22, 2021, 6:59am UTC](https://forum.rasa.com/t/problem-with-slot-list-in-forms/47896/2 "2021-09-22T06:59:48Z")

</div>

@elizandro.dalastra

> on the next iteration of the form the list elements just disappear

Could you please clarify this statement by providing the full debug log? Did I understand correctly that when you activate the form in the same conversation a 2nd time, the `tops` slot is requested again because it’s empty?

Also please confirm your rasa & sdk version.

---

<div class="post-metadata">

**Author:** ![Gehova](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@Gehova](https://forum.rasa.com/u/Gehova)\
**Post date:** [September 24, 2021, 4:37pm UTC](https://forum.rasa.com/t/problem-with-slot-list-in-forms/47896/3 "2021-09-24T16:37:05Z")

</div>

Yes, I had the same problem. The list is override with an empty one. Check this [thread](http://forum.rasa.com/t/list-slot-append-instead-of-override/11645).

---

<div class="post-metadata">

**Author:** ![elizandro.dalastra](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elizandro.dalastra](https://forum.rasa.com/u/elizandro.dalastra)\
**Post date:** [September 24, 2021, 5:33pm UTC](https://forum.rasa.com/t/problem-with-slot-list-in-forms/47896/4 "2021-09-24T17:33:18Z")

</div>

Thanks guys, I I implemented it in another way, changing tops slot to text type.

---

<div class="post-metadata">

**Author:** ![haqqibrahim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/haqqibrahim/32/21700_2.png) [@haqqibrahim](https://forum.rasa.com/u/haqqibrahim)\
**Post date:** [October 29, 2022, 8:27am UTC](https://forum.rasa.com/t/problem-with-slot-list-in-forms/47896/5 "2022-10-29T08:27:03Z")

</div>

Can you please help me with your code, i still can’t fix the error
