I am seeing errors in the functions and I cannot understand.
Could you help me?
Thanks
/** INCLUDE HTML PARTS, EG. JAVASCRIPT, CSS, OTHER HTML FILES */
function include(filename) {
return HtmlService.createHtmlOutputFromFile(filename)
.getContent();
}
*************************************************************
Errore
Exception: Bad value
include
@
*************************************************************
====================================
/** PROCESS FORM */
function processForm(formObject){
/**--Execute if form passes an ID and if is an existing ID */
if(formObject.RecId && checkID(formObject.RecId)){
/**--Update Data */
updateData(getFormValues(formObject),globalVariables().spreadsheetId,getRangeByID(formObject.RecId));
}else{
/**--Execute if form does not pass an ID
**--Append Form Data */
appendData(getFormValues(formObject),globalVariables().spreadsheetId,globalVariables().insertRange);
}
return getAllData();
}
*************************************************************
Errore
TypeError: Cannot read property 'RecId' of undefined
processForm
@
************************************************************