PHPOffice / PHPWord

A pure PHP library for reading and writing word processing documents
https://phpoffice.github.io/PHPWord/
Other
7.28k stars 2.7k forks source link

Multiple Checkboxes with the same name #2692

Open Deutrix opened 4 weeks ago

Deutrix commented 4 weeks ago

Describe the bug and add attachments

I am having an issue selecting multiple checkboxes across the file with the same name.

For the setValue function, it works on multiple places but setCheckbox is not working.

I need to name chem checkbox1 checkbox2 etc.

Is there some workaround or solution for this?in

Expected behavior

Replace all values based on same name. the

Steps to reproduce

$templateProcessor->setCheckbox('checkboxname', true); $templateProcessor->setCheckbox('checkboxname', true);

PHPWord version(s) where the bug happened

master

PHP version(s) where the bug happened

8.2

Priority