Open luoxi001713 opened 3 years ago
Scenario: Status A - > status B, I want to check if a field is valid before transition.
I know there is a before_EVENT, but I don't know how to control don't let the status from A to B in this function.
Thanks
I saw that there is a Cancel() method in event object you can call it in callbacks
Cancel()
@luoxi001713 Is your question answered by @suerta-git?
Scenario: Status A - > status B, I want to check if a field is valid before transition.
I know there is a before_EVENT, but I don't know how to control don't let the status from A to B in this function.
Thanks