How to check the slot when write form?

The rasa is ued to different courts, how to check the slot when write form?such as I need some slots for form, loaction,person,project, but if the location is not same as the local court,we will stop write form.only the location is just here, can ask other rest slots. Is it use validate_XX_form?Can give me some links(examples) how to use it?Thanks a lot.

Hi @xhyxxj,
maybe the example in the Sara Demobot helps you? They have a form, which collects some information including the email-adress. Then they have a custom action validating that email. Here is the link to the action.py of the Sara Demobot.
Hope that was helpful!
Ciao, Vio

now I know the validating ,but how to stop form if the slot is not loaction of the court? I want to stop or exit it.

Hi @xhyxxj,
you might find this How do I deactivate a form during validation? - #18 by ChrisRahme forum thread interesting to read. If I get you, it should cover exactly what you are looking for.
Ciao, Vio

1 Like