Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RE default value checked on checkbox #281 #455

Open
xarls opened this issue Dec 26, 2014 · 3 comments
Open

RE default value checked on checkbox #281 #455

xarls opened this issue Dec 26, 2014 · 3 comments

Comments

@xarls
Copy link

xarls commented Dec 26, 2014

Hi !!!

In reference to post " default value checked on checkbox #281" I tried to test the code but does not recognize the function setvalue.
Please, I need to put a checklist in a template whit a set value, but I am not able also I've searched the forums and find nothing.

Thanks!!!


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ozilion
Copy link
Contributor

ozilion commented Dec 26, 2014

I am also waiting this feature but for now there is noway to use setvalue for checkbox in template file.

@ozilion
Copy link
Contributor

ozilion commented Nov 27, 2015

I've tried PHPDocx template features. They have function named thickChecboxes to set value of specified checkboxes in templates. Here is the sample code from their trial pro package.

setLanguage('tr_TR'); $variables = array('check1' => 1, 'check2' => 0, 'check3' => 1); $docx->tickCheckboxes ($variables); $docx->createDocx('example_tickCheckboxes_1'); This function uses variable entered in statusText field of checkbox and working like a charm as we expected too 👍 :) I don't know if already PHPWord has similar feature but may be we can also implement such a way. I could use PHPDocx to check checkboxes but it takes so long time to process. As an example with PHPWord i can finish a job in 10 seconds, with PHPDocx it takes around 2 min and i tested without using tickCheckbox function.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.

@github-actions github-actions bot added the Stale label Nov 18, 2022
@Progi1984 Progi1984 removed the Stale label Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants