We have a infopath form where the submit button needs to be hidden after it is clicked in the form library. I tried doing it using the formatting but the issue is theIf I submit the form then go back to view 1 the button is gone.If I close and reopen the form it shows up again

Where Hide is a text filed with default value as 0.Can anyone please help me with this