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

# onRecordSave

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