> For the complete documentation index, see [llms.txt](https://gebra-it.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gebra-it.gitbook.io/wiki/client-api-reference/events/onrecordsave.md).

# onRecordSave

The event occurs right before a record is saved. By returning false, the following save operation is canceled

```javascript
   console.log("saving a record");
   if(a != b){
       return false; //cancel the save operation
   }
```
