Page 1 of 1

Binding CheckBox in DOCX4J

PostPosted: Tue Apr 28, 2015 11:02 pm
by blefuska
Hello,

Is there a workarround for the current issue while mapping Word document fields and content controls to xml:

If I map a checkbox to a certain field in xml and its value (when binding) is false, the correct symbol (checked box) gets created in resulting document, but if the value is anything other, then that value replaces the checkbox symbol (content control)?

Thank you in advance!

Re: Binding CheckBox in DOCX4J

PostPosted: Tue Apr 28, 2015 11:05 pm
by blefuska
Sorry, it's the other way arround - if it's "true" (or 1), then it gets checked and replaced if anything other.

Re: Binding CheckBox in DOCX4J

PostPosted: Thu Apr 30, 2015 9:10 pm
by jason
Expected behaviour is documented at https://github.com/plutext/docx4j/blob/ ... eckbox.txt

Actual behaviour: Having just had a quick look at the code in model.datastorage, it looks like this isn't implemented yet.

Is that what you are seeing?

Re: Binding CheckBox in DOCX4J

PostPosted: Fri May 08, 2015 6:41 pm
by blefuska
Yes, "1" and "true" is working, but everything else is just put to the document. Trherefore I guess that I just need to wait for the next release?

Re: Binding CheckBox in DOCX4J

PostPosted: Tue May 26, 2015 12:57 pm
by jason