enableLogging = false; // set to true for debug logging dumpLogFileName = "_pre-delete-formrecord-hook.html"; // On pre hook logic fail, set caller.continue=0 to not delete the record and not run the post hook // caller.continue=0; if ( enableLogging ) application.ADF.log.logAppend(msg=attributes, label='attributes pre', logfile=dumpLogFileName);