Tried following this guide but got the blank result.
https://www.phpdocx.com/htmlapi-documentation/html-standard/insert-input-field-Word-document-with-HTML
Tried following this guide but got the blank result.
https://www.phpdocx.com/htmlapi-documentation/html-standard/insert-input-field-Word-document-with-HTML
Hello,
We have run this simple script:
$docx = new CreateDocx();
$html='
<label for="fname">Name:</label>
<input type="text" name="fname"><br><br>
<label for="fname">Password:</label>
<input type="text" name="fname"><br><br>
<label for="fcheckbox">Checkbox:</label>
<input type="checkbox" name="fcheckbox"><br><br>
';
$docx->embedHTML($html);
$docx->createDocx('output_html');
and all contents are added correctly to the DOCX, including the checkbox. We have opened the output with all MS Word versions from MS Word 2007 to MS Word 2021, and LibreOffice 7; in all cases the contents appear correctly.
What program are you using to open the DOCX? Please run this same script and check the output using MS Word.
Regards.