Please check the default example:
And if you want to set the email on the submit of document then check it.