I have written some javascript and attached it onto the onSave event of an entity to perform some actions when a record is deactivated. This works fine when on the form but if a user decides to deactivate the record from the entity view then this code does not get fired. Is there a way that I can attach this event to deactivating from here?
Thanks
You’ll have to create plugin if you want to perform some action that doesn’t take place on the actual form itself, or a button on the ribbon. See this similar question