Help
CQ.onBeforeSave
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.
Syntax
CQ.onBeforeSave(Function method, Object data) : void
Parameters
Returns
void
See Also
CQ.setAnswer Custom Questions Javascript API