requiresConfirmation - Disable Submit?

I need to have two types of requiresConfirmation on the submit button. Basically if X = Y then allow submitting the modal, but if X != Y then we need to show different message instead. Is it possible to conditionally disable the buttons? Best way?
Solution
Tried that, didn't really work. So I just decided to send a notification which has an action on 🙂
Was this page helpful?