hello everyone
I'm use to checking conditions with API by javascript for in my form (which is writing all the function on the button) but seem like ms is not support to edit the default button on command bar yet
so is there any way I can check conditions before the user clicks to run a flow or write a new button to trigger the flow by javascript ?

there are the flow button that I talking about