Hi @hazey,
The best way to do this is to create a hidden field in the form and in the Mapping macro IN the current username (Current user.Username macro). You can then use this value in code behind by referencing the Text parameter of the hidden field.
Regards,
Eddy.