Oh, I see what you mean now.
How many input text parameters do you need?
In the ExportWebMapForm.mxml, you can just add as many mx form items as you need with the title, copyright, author, etc.
Regarding the legend, just have one layer in your template and leave it turned off, and then add the legend and check the dynamic checkbox.