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