# onRender event for buttons

**URL:** <https://forum.servoy.com/t/onrender-event-for-buttons/17721>\
**Category:** Classic Servoy\
**Created:** [January 9, 2014, 4:56pm UTC](https://forum.servoy.com/t/onrender-event-for-buttons/17721 "2014-01-09T16:56:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![juan.cristobo](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@juan.cristobo](https://forum.servoy.com/u/juan.cristobo)\
**Post date:** [January 9, 2014, 4:56pm UTC](https://forum.servoy.com/t/onrender-event-for-buttons/17721/1 "2014-01-09T16:56:03Z")

</div>

I’ve attached a method to the onRender event of an element. In that method, **event.getRecord()** returns the record, but if the element is a button, it returns null. In v6 it always returns the record, is it a bug in v7.3?
