Hide action based on form change

I added an action button to my form for example Approve that changes some status, but in edit page when user makes change in the form he can forget to save changes and just click approve which will trigger the previous data so how can I hide the approve action button immediately after form changes are made?
Was this page helpful?