You could use a script like this, in the docReady event of a field:
this.rawValue = identity.name;
But, this script will work only if the document is certified and the certifier’s certificate is trusted for running embedded high privilege JavaScript.