Hi all,
I have a check box content control which I'm using to show/hide a rich text content control containing multiple paragraphs of text.
Everything works great, except I have one issue — the rich text content control "container" is still visible, which produces an extra line/paragraph in my document that I do not want.
For example, here is what it looks like:
Image.png
and here is what I want it to look like:
Image2.png
Below is a snippet of the code I'm using to (1) determine the status of the checkbox, and (2) hide the content control.
Code:
isChecked = ActiveDocument.SelectContentControlsByTitle("Checkbox")(1).Checked
ActiveDocument.SelectContentControlsByTitle("Content Control")(1).Range.Font.Hidden = Not isChecked
I've also attached a simplified version of the Word file to illustrate this issue.
Is there any way I can get rid of this extra line? I tried bookmarking the content control and hiding it that way, as well as playing around with the paragraph settings, but no luck. Thank you!