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.


Description

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

Syntax

DeleteControl()

DeleteControlIf(condition)

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).

Remarks

  • 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.

Example

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