Hi @phi1ipp,
Thanks for your question.
You can send a variable from Actions to Forms to determine the number of user attempts, and save it under the user_metadata. Then, you can provide an incorrect answer to a custom OTP challenge with that information. Once the Flow on Forms is complete, you can increment the variable in an action script received from Forms.
For more information, please refer to our How to Send Variable Values from Actions to Forms and Back to Actions knowledge article.
Thanks,
Rueben