Hi, I'm integrating the Sharepoint form with Power Apps. I'm trying to make if the label appears then, if the user clicks Save, they cannot save it. I tried the formula below but it still saves. How to fix this?

SharePointIntegration.OnSave
If(Label1.Visible=true, false ,SubmitForm(SharePointForm1));
Thank you