Registers a callback method that the exam engine calls just before saving an
exam. The custom question can use this callback to call CQ.setAnswer
. The exam engine can call
the callback more than once for an exam because of the exam engine's autosave feature.
CQ.onBeforeSave(Function method, Object data) : void
- method – The callback method to be called just before saving the exam. The
callback method must accept one parameter: the data object specified in the CQ.onBeforeSave call.
- data – An opaque object that
CQ.onBeforeSave passes to method.