Has anyone ran into an issue where the native getFormType function caches? For example, if you are on an Update form for an Account and then Deactivate it then use Xrm.Page.ui.getFormType(), it will still return 2 which is the form type for an Update form.
Any ideas?