title: Script generates new Google spreadsheets from template and name them upon form-submitted data
body: <p>I'm trying to have this script working, but I'm missing something. It should grab data submitted via webform and stored in a spreadsheet that has this script attached, and then perform the following: </p>
  
  <p>*create a new spreadsheet from a pre-formatted and ready-to-use template spreadsheet</p>
  
  <p>*name the new spreadsheet with the data submitted via webform (eg. ID, date and else) </p>
  
  <p>*also, the template as more than one sheet.</p>
  
  <pre><code>function CreateNewSS() {
  var ss = SpreadsheetApp.getActiveSpreadsheet(); 
  ss.copy("Prefix " + data());  //create the new spreadsheet. 
  var data = Range.getCell(0, 0); 
  var sheet = ss.getSheetByName('UserSubmittedData'); // sheet feed by web form 
  var range = sheet.getRange(1,1); 
  }
  </code></pre>
  
  <p>I'm stuck at this point.</p>
  
  <p>Thanks in advance for any hint.</p>