Create a field i.e FormURL
You can then use a default value i.e. concat(http://mydomain.com/forlibrary/",UsernameField,"_"Surname). To generate it from a button, use a rule,so that when the button is pressed, it set the FormURL field value to your concat formula.