hello,
when i insert a html code with
$docx->embedHtml($text, array('removeLineBreaks'=>true));
and there's a checkbox inside i get a grey background inside the checkbox square.
is there a way to remove it?
hello,
when i insert a html code with
$docx->embedHtml($text, array('removeLineBreaks'=>true));
and there's a checkbox inside i get a grey background inside the checkbox square.
is there a way to remove it?
Hello,
That's how FORMCHECKBOX fields are added as default. To remove grey backgrounds from legacy forms please check doNotShadeFormData available in docxSettings (https://www.phpdocx.com/api-documentation/layout-and-general/set-Word-settings). Please note that the support of this setting may change in some DOCX readers.
Premium licenses can also use HTML Extended to prevent adding that grey background using phpdocx_simplefield tag and the doNotShadeFormData attribute.
Regards.