On resolving a case using js, i was unable to refresh the form as soon as the case got resolved using the below syntax
formContext.data.refresh(true);
Again hard reload or refresh is required to lock the form as the case is resolved.
Any help would be more appreciated.