Replies: 1   Views: 3211
Html in template
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 mbcalvin  · 08-10-2012 - 20:20

I am using the following:

$docx->replaceTemplateVariableByHTML('po_received', 'inline', "<input type='checkbox' checked='checked'/>", array());
$docx->replaceTemplateVariableByHTML('po_approved', 'inline', "<input type='checkbox'/>", array());

The variables are being replaced, but the variable symbol (~ in my case because I am using the setTemplateSymbol()) remains. How can I get it to remove the template symbol when it inserts the checkbox.