> 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/onrecordload.md).

# onRecordLoad

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

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