DeleteControl function

Applies to JungleDocs for SharePoint 2010-2019.
For JungleDocs for Office 365 tutorials, click here.

This article describes the formula syntax and usage of the DeleteControl and DeleteControlIf functions in JungleDocs.


Deletes a content control along with its contents. Usually used in conjunction with other functions.




The DeleteControlIf function syntax has the following arguments:

  • condition   Required. Supports field values, Boolean operations (>, <, >=, <=, =, <>), conditional functions AND(condition1; condition2;...), OR(condition1; condition2;...), NOT(condition).


  • Use DeleteControl to delete whole sections of the document by adding a content control on top of everything and entering the function in the control properties.
  • This function is different from the Remove content controls command in the Base rule settings as it will delete content control together with its content. Remove content controls will remove content controls but will leave the content intact.


If(AND(Title = "Test"; Value = 5); DeleteControl(); Value)

Deletes a content control if the Title field value equals 5. If not, returns Value.

IfEmpty(CompanyName; DeleteControl())

Deletes a content control if the CompanyName field value is empty.

DeleteControlIf(AND(IfEmpty(Column1; True; False) = True; IfEmpty(Column2; True; False) = True))

Deletes a content control if the values in Column1 and Column2 are empty.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us