Hi Lily,
There is a double difficulty :
First, check-boxes are not the same inner structure in Word 2007 and Word 2010. But I guess you know the format you are using for your template.
Ans also, you must change two values in the inner structure of the check-box in order to set it checked or unchecked.
The first value is the attribute of the element <w14:checked w14:val="0"/> (using Word 2010)
This is easy because the attribute value is 1 for checked, 0 for unchecked.
Unfortunately, this does not change the display.
So you have also the change the symbole. This can be changed only by changing manually the XML source, and replace:
<w:sdtContent>
<w:r>
<w:rPr>
<w:rFonts w:ascii="MS Gothic" w:eastAsia="MS Gothic" w:hAnsi="MS Gothic" w:hint="eastAsia"/>
</w:rPr>
<w:t>☐</w:t>
</w:r>
</w:sdtContent>
|
with:
<w:sdtContent>
<w:r>
<w:rPr>
<w:rFonts w:ascii="MS Gothic" w:eastAsia="MS Gothic" w:hAnsi="MS Gothic" w:hint="eastAsia"/>
</w:rPr>
<w:t>[onshow.opt1;if [val]=1;then ☒;else ☐]</w:t>
</w:r>
</w:sdtContent>
|
This is not simple.
Finally the best wy is may be to use special symbols instead of real Ms Word check-boxes.
Then you just have to code something like :
[onshow.opt1;if [val]=1;then ☒;else ☐] |