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?
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it nowhello,
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.