L enables native LIVE input support. This article concerns Form View addField definitions; Table View fields have their own configuration.
Arrays are the newer full, extensible configuration and are preferred for new definitions. Strings remain compatible legacy shorthand/quick syntax. Option keys are specific to each native field type.
After the owning page has authorized an existing row and supplied dbtable, idfield and idvalue, define a native LIVE field:
addField([
'type' => 'live', 'inputType' => 'text',
'name' => 'NAME', 'id' => 'live_item_name', 'label' => 'Name',
'value' => $currentName,
'encdata' => [
'TYPE' => 'LIVE', 'DBTABLE' => $dbtable,
'IDFIELD' => $idfield, 'IDVALUE' => $idvalue
]
]);name is the actual stored column; value is the current display value. Use a unique lowercase id property, not an invented uppercase ID key. attributes, class and type-specific options customize native presentation. The encrypted descriptor is constructed by the framework from page-owned identifiers.
Native LIVE transport and feedback save through db_actions. Do not add another save endpoint for an ordinary LIVE field. Authorize the row and validate persisted values on the server; readonly/disabled markup is not write protection. Use native asset loading rather than copying a hardcoded script-version URL.