Angelo Urzua-Milla
Sep 9, 2018 · 1 min read

Good evening Max, thank you for writing this. Unfortunately, I have stumble upon this message:

“Missing ; before statement (line 7)”

Could you please help me?

function onFormSubmit(e) {
var values = e.namedValues;
var htmlBody = ‘<ol>’;
for (Key in values) {
var label = Key;
var data = values[Key];
htmlBody += ‘<li>’ + label + “: “ data + ‘</li>’; (← Line 7)
};
htmlBody += ‘</ol>’;
GmailApp.sendEmail (‘insert email here’, ‘enquiry’,’ ‘, {htmlBody:htmlBody};)
}

Thank you!