views.detail.php: Detect when a record is being created

inside of the custom/modules/<module/views/views.detail.php is there a way to detect when a record is being created?
I would like to do it in this file since I already have customizations in it. If this is not possible then is there another place where I can check when a record is being created?

If you use view.edit.php then you can check if its a new record if $this->bean->id does not exist

1 Like