A Form View LIVE numeric field uses L and the owning authorized row. Configure number constraints as native attributes; validate the actual persisted value on the server as well.
addField([
'type'=>'live', 'inputType'=>'number',
'name'=>'AMOUNT', 'id'=>'item_amount', 'label'=>'Amount',
'attributes'=>'min="0" step="0.01"',
'value'=>$currentAmount,
'encdata'=>[
'TYPE'=>'LIVE', 'DBTABLE'=>$dbtable,
'IDFIELD'=>$idfield, 'IDVALUE'=>$idvalue
],
'callback'=>'location.reload()'
]);
AMOUNT and the page variables must match the actual schema/authorized row. id is lowercase; callback is a quoted PHP key containing page-owned callback code. Use step=1 for integers. Browser step/min constraints do not reject every pasted, scripted or crafted request; server validation remains required. Reuse native LIVE acknowledgement and failure feedback.
Full arrays are the modern extensible configuration. Strings remain supported legacy shorthand/quick syntax. Prefer full arrays for new definitions; use only keys supported by the owning field or component.