// load jQuery headers //application.ptCalendar2.scripts.loadJQuery(); // initialize app working variables notifyUsers = ""; // Set the render form or link flag renderForm = 1; // Check if we need to display the form if ( (StructKeyExists(request.params, "renderForm")) AND (IsBoolean(request.params.renderForm)) ) { renderForm = request.params.renderForm; } // Set the process flag processForm = 0; // Check if we need to display the after submit page /* if ( (StructKeyExists(request.params, "processForm")) AND (IsBoolean(request.params.processForm)) ) { processForm = request.params.processForm; } */ // Check if the form has been submitted if ( structKeyExists(request.params, "parameters") ) { processForm = 1; renderForm = 1; } // extract some fields from the simple form formFieldVals = application.ptCalendar2.forms.extractFromSimpleForm(form, "UniqueID,parentID,category"); //,Title,eventDate,starttime,location //Application.ADF.utils.doDump(formFieldVals,"formFieldVals",1); // Send and Email to the Notification Contacts for each selected Event Category if ( structKeyExists(formFieldVals,"UniqueID") AND ListLen(formFieldVals.UniqueID) GT 0 ) notifyUsers = Application.ptCalendar2.eventNotificationService.notifyUsersByEventID(formFieldVals.UniqueID); Error Occcured.