Hi legolas,
I would suggest creating a Form Name field and adding a rule in your submit button that sets the Form Name field to the value of the Surname field and run the rule with a condition only when the Surname field is blank. Then, in your submit data connection, use the Form Name field as the Filename.
Let me know if that helps.
Jo-Anne