Form OnRecord PHP event

I would like to add a calculated field on the form. Right now I found some forum posts where people suggest to use javascript (frontend).
Doing it via javascript limits functionality such as searching. It is also limits whole concept of SC of using macros. I think SC framework should really add PHP event OnRecord such as for the grids.

I think you can use PHP for your calculated field. Please tell me what do you need to do.

On a form there is only one record thus you need to use the onload event. If you have a multiple edit form you can use onloadrecord. For records you need an onrecord event. So what’s the problem?

Just add a custom field to your form. Then fill this field in the onload event. That’s all.

Thanx Albert, I overlooked the form OnLoadRecord event.