# Filling two slots , one with entity and one with whole sentence | RASA Forms

**URL:** <https://forum.rasa.com/t/filling-two-slots-one-with-entity-and-one-with-whole-sentence-rasa-forms/31111>\
**Category:** Rasa Open Source\
**Created:** [July 8, 2020, 9:36am UTC](https://forum.rasa.com/t/filling-two-slots-one-with-entity-and-one-with-whole-sentence-rasa-forms/31111 "2020-07-08T09:36:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![usamanawazfrt](https://avatars.discourse-cdn.com/v4/letter/u/df705f/32.png) [@usamanawazfrt](https://forum.rasa.com/u/usamanawazfrt)\
**Post date:** [July 8, 2020, 9:36am UTC](https://forum.rasa.com/t/filling-two-slots-one-with-entity-and-one-with-whole-sentence-rasa-forms/31111/1 "2020-07-08T09:36:50Z")

</div>

I have an entity Name which is being requested in a form. User provides the name or string containing name. what i want to do is that, i can save name in the name slot and also i can copy the exact string provided by the user in another slot. how can i possibly do this. i am aware of self.from\_text() and self.from\_entity() but i want to know how i can i fill both of these while i have only one requested slot.

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [July 10, 2020, 7:15am UTC](https://forum.rasa.com/t/filling-two-slots-one-with-entity-and-one-with-whole-sentence-rasa-forms/31111/2 "2020-07-10T07:15:46Z")

</div>

If I understand it correctly, then two slot mappings are valid for a given slot? You can combine them as described [here](https://rasa.com/docs/rasa/core/forms/), e.g.

```python
def slot_mappings(self) -> Dict[Text, Union[Dict, List[Dict]]]:
    """A dictionary to map required slots to
        - an extracted entity
        - intent: value pairs
        - a whole message
        or a list of them, where a first match will be picked"""

    return {
        "outdoor_seating": [
            self.from_entity(entity="seating"),
            self.from_intent(intent="affirm", value=True),
            self.from_intent(intent="deny", value=False),
        ],
    }

```
