I have a button that I would like it to be enabled for the user to click on only if the form become on edit mode and not on view mode.
There is another button that will be clicked by the user to make the form on edit mode and once this icon is selected (this is edit icon that is Onselect edit form) I want the other icon to be enabled for the user to use.
I have written below code but not working any advice would be appreciated.

Any advice would be appreciated. Thank you in Advance