I have a google form that links to a google sheet. On form submit, the responses automatically fill out a doc template and generate a pdf, saving it on drive. I also have a script that populates a column with the edit link for the form submission if they want to change information. Everything works perfectly on the initial submission, but on editing the form, when submitting, only the information that has been changed is submitted, thus leaving the majority of informaton undefined.
Any ideas?
I collect form data like this:
function generateQuote(e) {
//collect form responses and store in variables
var QuoteID = Utilities.formatDate(new Date(), "CDT", "yyMMddHHss");
var CustomerName = e.namedValues['Name of Power Plant'][0] !=''? e.namedValues['Name of Power Plant'][0] : ' ';
var CustomerAddress = e.namedValues['Address'][0] !=''? e.namedValues['Address'][0] : ' ';
}