Sometimes live fields can generate a lot of errors when the data structure of the database is very specific. For example a date field has a specific format and a live input might submit incomplete data while it is being typed (2024-02-.... ) . Or some fields accept only numbers but if the user types a letter it will also generate an error.
For those cases it is recommended to add submit fields where the user can type the info, review it and submit once he knows it is complete and valid.
$td_fields = [
[
'type'=>'submit',
'inputType' => 'text', //could be text, number, textarea or calendar
'col'=>'description', //db column name
'privilege'=> 4, //optional, 4 will show the field only to High and Admin privileges, default is 1
'class'=>'', //optional, class name selector default: none (empty)
'style'=>'style="color:red"', //optional, default: none (empty)
'attributes'=>'' //optional, can be any attribute(s) with value(s) default: none (empty)
]
];