DOCX From Dynamic Template - Checkbox

How the check box should be handled in the template while using DOCX From Dynamic Template. Also please let me know what will be the Xml Data Model  for checkbox. 

  Discussion posts and replies are publicly visible

  • Here is the XML snippet we used for rendering check box in DOCX templates.

    ="<w:p>
    <w:pPr>
    <w:pStyle w:val=""NoSpacing""/>
    <w:spacing w:before=""40"" w:after=""40""/>
    <w:jc w:val=""center""/>
    <w:rPr>
    <w:rFonts w:ascii=""Arial"" w:hAnsi=""Arial"" w:cs=""Arial""/>
    <w:sz w:val=""20""/>
    <w:szCs w:val=""20""/>
    </w:rPr>
    </w:pPr>
    <w:r>
    <w:rPr>
    <w:rFonts w:ascii=""Arial"" w:hAnsi=""Arial"" w:cs=""Arial""/>
    <w:sz w:val=""20""/>
    <w:szCs w:val=""20""/>
    </w:rPr>
    <w:fldChar w:fldCharType=""begin"">
    <w:ffData>
    <w:name w:val=""""/>
    <w:enabled/>
    <w:calcOnExit w:val=""0""/>
    <w:checkBox>
    <w:sizeAuto/>
    <w:default w:val="&char(34)&if(ri!isEnabled,"1","0")&char(34)&"/>
    </w:checkBox>
    </w:ffData>
    </w:fldChar>
    </w:r>
    <w:r>
    <w:rPr>
    <w:rFonts w:ascii=""Arial"" w:hAnsi=""Arial"" w:cs=""Arial""/>
    <w:sz w:val=""20""/>
    <w:szCs w:val=""20""/>
    </w:rPr>
    <w:instrText xml:space=""preserve""> FORMCHECKBOX </w:instrText>
    </w:r>
    <w:r>
    <w:rPr>
    <w:rFonts w:ascii=""Arial"" w:hAnsi=""Arial"" w:cs=""Arial""/>
    <w:sz w:val=""20""/>
    <w:szCs w:val=""20""/>
    </w:rPr>
    </w:r>
    <w:r>
    <w:rPr>
    <w:rFonts w:ascii=""Arial"" w:hAnsi=""Arial"" w:cs=""Arial""/>
    <w:sz w:val=""20""/>
    <w:szCs w:val=""20""/>
    </w:rPr>
    <w:fldChar w:fldCharType=""separate""/>
    </w:r>
    <w:r>
    <w:rPr>
    <w:rFonts w:ascii=""Arial"" w:hAnsi=""Arial"" w:cs=""Arial""/>
    <w:sz w:val=""20""/>
    <w:szCs w:val=""20""/>
    </w:rPr>
    <w:fldChar w:fldCharType=""end""/>
    </w:r>
    </w:p>"
  • Hello Ankushj,

    I am not sure what you are trying to achieve but i was able to add checkboxes even inside an if statement, which was inside a list/rows (table). KJust by adding the normal word Checkboxes into the template.

    Jose Perez
  • is there a way to use checkbox rendering using dynamic document template smart service?
  • 0
    Certified Lead Developer
    in reply to Larsen Rodrigues

    Hi Larsen,

    Did you achieve the Checkbox option . i am trying to create a DOCX using dynamic document template.

    Please help.