Deactivate a form based on a slot value via story

hello, i want to deactivate the form when the the requested slot is salary for example, in fact i don’t want to complete the form, i want to stop it to execute an action then activate ( i use rasa 3.1) i need a help please

You can use the required_slots method to set the required slots to none. There’s an example in thedocs here.

this method is used for the custom slot mappings, i want to use the method "slot_was_set " in stories but it doesn’t work !!!