#GeneralInterest I have "user input task" activity and "document

#GeneralInterest I have "user input task" activity and "document generator" service where i map the ### parameters(defined in DOCX template) with appropriate process variables.
PROBLEM: I want checkbox field to populate in template field based on given input from "user input task form".
As found, it discussed/found , we could achieve this using OOXML and w:checkbox such elements.
But, How can i generate OOXML for given template and generate docx file having checkbox ?
any one please share me some detail step to achieve checkbox field to populate in report template ?
Thank You......

OriginalPostID-79029

OriginalPostID-79029

  Discussion posts and replies are publicly visible

Parents
  • Dhaval, here is an example:
    Create Word Docx template.
    Use the "Text Doc from Template" smart service under Document Generation in your model.
    Have a variable like ###wifiCheckbox### in your docx template.
    In the Template Configuration, you can put an if() condition for ###wifiCheckbox###
    For example:
    Find in template document -> ###wifiCheckbox###
    Replace with -> if(pv!isWifi, "<w:sym w:font="Wingdings 2" w:char="F052"/>", "<w:sym w:font="Wingdings 2" w:char="F0A3"/>")
Reply
  • Dhaval, here is an example:
    Create Word Docx template.
    Use the "Text Doc from Template" smart service under Document Generation in your model.
    Have a variable like ###wifiCheckbox### in your docx template.
    In the Template Configuration, you can put an if() condition for ###wifiCheckbox###
    For example:
    Find in template document -> ###wifiCheckbox###
    Replace with -> if(pv!isWifi, "<w:sym w:font="Wingdings 2" w:char="F052"/>", "<w:sym w:font="Wingdings 2" w:char="F0A3"/>")
Children
No Data