auto naming doc from text box?

I’m new to making forms. I need to make a blank form and have it auto name and save a copy based on the first text box that gets filled. I’m not sure what macro(s) to use in the events section of the text box’s properties. The goal is to be able to open the blank template form and have it save a copy so the blank stays safe. Also, the first text box would be the name of the document.

If some one could point me in the right direction for manual pages for the stock macros I’d appreciate it too. I’m sure there are libraries of macros around somewhere, but I’m not sure where to look.

Do you think something like this? example-formSaveAs.odt