-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
default value checked on checkbox #281
Comments
Use the new $textrun = $section->addTextRun();
$textrun->addFormField('checkbox');
$textrun->addText('D');
$textrun = $section->addTextRun();
$textrun->addFormField('checkbox')->setValue(true);
$textrun->addText('B'); |
helpful answers and so fast response |
oh iya maaf 1 lagi kang. kalo di masukan ke dalam tabel seperti apa ya??beda seperti yang ini : |
You need to change the container from $table = $section->addTable();
$cell = $table->addRow()->addCell(1000);
$textrun = $cell->addTextRun();
$textrun->addFormField('checkbox');
$textrun->addText('D');
$textrun = $cell->addTextRun();
$textrun->addFormField('checkbox')->setValue(true);
$textrun->addText('B'); |
wish Allah always bless you. my job much helped. |
Use this to add the checked checkbox to the word document, $table = $section->addTable(); $textrun = $cell->addTextRun(); $textrun = $cell->addTextRun(); This did work for me, hope this will help you guys. :) |
hii all.
i want to create a checkbox with a default value checked in one of that like this
so, is there any function to do that??
thanks so much..
The text was updated successfully, but these errors were encountered: