Forum


Replies: 2   Views: 4131
Table and checkbox
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by rcelle  · 10-07-2013 - 17:12

There is a way to insert checkbox in a table using:



foreach ($array as $key => $value) {

   $tb[] = array('A' => $value, 'B' => checkbox);

}

$docx->addTemplateVariable($tb, 'table', $tbsettings);


Posted by admin-phpdocx  · 12-07-2013 - 09:29

Not directly like that.



You should first create the checkbox and insert it in the table as a WordML fragment.