Live Text Area Field

Table Views can display information from the database, but can also display input fields that will automatically saved data to the database as we type on them.

TEXTAREA LIVE INPUT

In the table View page add a column for your input. For example NOTES, in this case 300 is a with of 300px

 

array_push($td_titles, "300-NOTES");

 

 

Then we need to create an array with the follwing values, some of them are optional.
"type" is required, this tells that we are going to a live input
"col" is also required to specify the database column name where the content will be fetched from and saved into
"inputType" is also required and it is one of he list above, in this case "text"

 

$tdvalue = array(
'type'=>'live',
'inputType' => 'textarea',
'col'=>'notes',
'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)
'attribute'=>''  //optional, can be any attribute(s) with value(s) default: none (empty)
);

 

Finally the array is added to the $td_fields array.

 

array_push($td_fields,$tdvalue);

 

Get a Quote

Get a Quote