@Command([EditRestoreDocument])
You may want to add a Hide When formula to the Restore action button so it only displays on the form when the current document is a soft deleted document. Select the Hide action if formula is true check box and enter the following code in the formula window.
@ViewTitle != "DeletedDocs"