Put the following lines at the end of your formula:
@If(@IsDocBeingEdited;
@PostedCommand([FileSave]);
@Do( @PostedCommand([EditDocument]);
@PostedCommand([FileSave]);
@PostedCommand([EditDocument])))
Field setting keeps staying in document only if document is in edit mode and it gets saved. Usually, emails are in read mode when users read their emails. With @Command([EditDocument]);
you can toggle between read and edit mode.
If the email is in edit mode we just need to save the document.
If the email is in read mode we change document to edit mode, save the document and set it back to read mode.