Forum


Replies: 3   Views: 193
A label next to a checkbox
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 aventyret  · 11-09-2024 - 13:19

I need to be able to add chewckboxes with a label after it. So like:
 

|CHECKBOX| I am a sausage

 This kind of works ok when using html and embedding it.

$html = '<input type="checkbox"/> <span style="font-size: 12px">' . $label . '</span>';

But then I get the legacy form component checkbox. I want to use the command

addStructuredDocumentTag('checkbox')

But I can't figure out how to be able to write text to the right (opr left) of it. Any ideas`?