Dynamic Forms: removing a slor from slot list

Hello everyone!

Just a quick question. I know that in a dynamic form it is possible to add slots in the form slot list according to how conversation is developing. Is it possible to remove slots from the form slot list during the conversation?

For example

forms: set_appointment: date: - entity: date type: from_entity hour: - entity: hour type: from_entity

Can I remove the slot “hour” under certain circumstances using a dynamic form?

Thanks, Andrea

Hi Andrea, this should be possible by editing the required_slots method. You should be able to directly edit the slots_mapped_in_domain argument and return it, since Python is pass-by-reference. In your case, simply remove “hour” from the slots_mapped_in_domain list.