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

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.

If I understand it correctly, then two slot mappings are valid for a given slot? You can combine them as described here, e.g.

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_intent(intent="affirm", value=True),
            self.from_intent(intent="deny", value=False),