Set a fill limit of a form

I am currently implementing an authentication form. So I would like to define a maximum number of attempts for the user. Thanks for your help

Hi @soldat,

Creat one variable with any name globally. And assign 0 value to it and every time you fetch the wrong response increase the number.

For example,

Wrong_attempt = 0

if validation: Return {slot_name",value} elif wrong_attempt <= 2: Wrong_attempt = wrong_attempt + 1 Return {“slot_name”,none} else: dispatcher.utter_message(“you reached to maximum limit”) wrong_attempt = 0 Self.deactivate()