Skip to main content
Skip table of contents

cc (DOCX)

A Word content command that alters the properties of its content control, specifically the title and the locking properties. If either of the locks are set through this command, the content control will not be removed during the evaluation process.

This command has a priority of 10.

Syntax:

cc(title,locked,contentLocked)

Attributes

#1 - title

Required

Value type

EL-evaluated

No

String

Yes

Defines a new title for the host content control.

Note that either locked or contentLocked has to resolve into true for this attribute to have any effect, as otherwise the host content control will be removed during the evaluation process.

If not defined and the content control is retained, the content control will have no title.

#2 - locked

Required

Value type

EL-evaluated

No

Boolean

Yes

Defines the Locking property "Content control cannot be deleted" for the host content control. If the resolved value is true, this property is set, making it not possible for users to remove the content control through Word's interface until this property is unset.

If either locked or contentLocked resolves into true, the host content control will not be removed during the evaluation process.

If not defined, the value of false is used, leaving the content control deletable.

#3 - contentLocked

Required

Value type

EL-evaluated

No

Boolean

Yes

Defines the Locking property "Contents cannot be deleted" for the host content control. If the resolved value is true, this property is set, making it not possible for users to delete the content within the content control through Word's interface until this property is unset.

If either locked or contentLocked resolves into true, the host content control will not be removed  during the evaluation process.

If not defined, the value of false is used, leaving the content control's contents deletable.

Examples

Have both the second and third attributes locked and contentLocked resolve into true to make the content control into a block of undeletable content in the composed document, for users not familiar with Word's content controls at least. It can be used together with any other Word content commands in the same title.

CODE
cc(,true,true) 
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.