I'm trying to get a variable to have a different background dependant upon the value.
e.g. 1 would be red, 2 would be orange and 3 would be green.
I've tried doing:
$code = '<head><style type="text/css">body{font-family: Arial;font-size:11pt;background-color: yellow;}</style></head><body>9</body>';
$docx->addTemplateVariable('FIELD_BK',$code, 'html');
but this doesn't do anything. Any pointers would be greatfully received.
Thanks.