Skip to main content
Nintex Community Menu Bar
Solved

How to use "Update Document" to set/unset Checkbox Content control

  • June 15, 2023
  • 4 replies
  • 152 views

Forum|alt.badge.img+1

Hi,

I’ve searched high and low on here and Google, with no joy.

I have a Word document that I use a workflow to update text boxes (Content Controls) from data in a list item.

I have a requirement to set / unset Checkboxes but I am struggling to do this. I have tried setting “Value” to “X” and also tried “Checked” but both set the box to the literal value.

Does anyone know the correct method to set of unset a Checkbox Content Control?

Many thanks.

Best answer by Jake

Hi @Tim_O 

 

Sadly Word API does not provide a means of programatically changing an existing check box however, we can place either a checked or a non checked box where needed. 

 

see below the article explaining how to set up conditional parts to do this. 

 

https://help.nintex.com/en-US/docgensf/Templates/ConditionalTextInWord.htm

4 replies

Jake
Forum|alt.badge.img+13
  • Scholar
  • Answer
  • June 15, 2023

Hi @Tim_O 

 

Sadly Word API does not provide a means of programatically changing an existing check box however, we can place either a checked or a non checked box where needed. 

 

see below the article explaining how to set up conditional parts to do this. 

 

https://help.nintex.com/en-US/docgensf/Templates/ConditionalTextInWord.htm


Forum|alt.badge.img+1
  • Author
  • Rookie
  • June 16, 2023

Thanks @Jake.  I am using a Word Document with Content Controls, so I assume I will have to add the data that the condition is run on, as a hidden field which is then interrogated by my check box fields?


Jake
Forum|alt.badge.img+13
  • Scholar
  • June 16, 2023

Hi @Tim_O 


you would add the formula field to the word document that evaluates the tag for the true false result you need, if true then a checked box is provided, if not then an empty box is presented. 
 

the instructions for this are half way down the article provided. 


Forum|alt.badge.img+1
  • Author
  • Rookie
  • June 19, 2023

Thanks @Jake.  I wondered if there was something simple I was missing but now see I need to add a hidden field that I will set to a value and another field that is calculated, as described in the linked article, from that value.  It’s clumsy but it will work.