How to call action during Form Action

I want to call a custom action during the validation of a form. What I’m trying to achieve is: In the form action validation, validating a slot, if this slot is set to True, I want to call a custom action, and then proceed with the form. How am I able to do this?

In form, if user says that slot “check_email” Yes(True)>>

  • Call action to send him an email with a verification code
  • Proceed with the form, asking for the slot verification_code.

Ok I figured it out. I just created another method for the FormValidationAction and called it