The Custom PHP Code field runs a server-side PHP block and renders whatever the block returns. Display-only — like SQL Query, the user can't edit the value; it's computed on every render.
Conditional options
- Custom PHP Code (Required) — the PHP block to execute. Has access to the row's data and standard ActiveManage helpers (
$AMDB,$AMuser, etc.).
How it works
The platform evaluates the PHP code with the row's data in scope. Whatever the code echos is rendered as the field value. Errors are caught and (in production) replaced with a generic error message.
Security considerations
Code entered here runs server-side with the full permissions of the web user. Restrict who can edit Custom PHP Code fields — usually only architect-level admins. The platform records every edit in the audit log.