Home → Using LincDoc 3.1+ → DANG Rule Wizard → Creating and Editing Custom Conditions
Custom conditions are user-configured Boolean (true or false) expressions that drive system behavior. A condition statement or clause may be singular or may be evaluated in conjunction with other clauses using AND (All of the following) or OR (Any of the following) to create more complex expressions.
You create a custom condition using the Edit condition dialog box.
Important: Although this procedure is written from the standpoint of using the Fields/Sections tab on the Admin dialog box, it also applies to conditions created throughout the LincDoc interface, starting with step 3 below.
Note: You need to click the advanced check box to see some of these options.
You can create a condition using normal mode, which provides a simplified interface.
Note: You can also click clear to return the dialog box to its original, non-configured condition.
You can create a condition using the advanced editing mode, which provides greater flexibility in the condition creation, but is not as easy to use as the normal mode.
Note: If desired, you can return to the normal editing mode by clicking the normal entry button.
The operator controls the type of comparison.
Operator | Description | Context | Available with Mobile |
AfterDate |
True if the comparison field's value is after the comparison date (specific date or date field). |
date |
✓ |
AfterDateTime |
True if the comparison field's value is after the comparison date and time (specific date/time or date/time field). |
datetime |
✓ |
AfterTime |
True if the comparison field's value is after the comparison time (specific time or time field). |
time |
✓ |
All |
True if all of the check box group items have been selected. |
checkbox groups |
✓ |
Any |
True if any of the check box group items have been selected. |
checkbox groups |
✓ |
BeforeDate |
True if the comparison field's value is before the comparison date (specific date or date field). |
date |
✓ |
BeforeDateTime |
True if the comparison field's value is before the comparison date and time (specific date/time or date/time field). |
datetime |
✓ |
BeforeTime |
True if the comparison field's value is before the comparison time (specific time or time field). |
time |
✓ |
Between |
True if the comparison field's value is equal to either of the two comparison values or within the range of the two comparison fields. |
numeric - (integer, decimal) |
✓ |
BetweenDate |
True if the comparison field's value is equal to either of the two comparison values (specific dates or date fields) or within the range of the two comparison fields. |
date |
✓ |
BetweenDateTime |
True if the comparison field's value is equal to either of the two comparison values (specific date/time or date/time fields) or within the range of the two comparison fields. |
datetime |
✓ |
BetweenTime |
True if the comparison field's value is equal to either of the two comparison values (specific time or time fields) or within the range of the two comparison fields. |
time |
✓ |
Contains |
True if the value of the comparison field includes the comparison value text. |
alphanumeric (text) |
✓ |
EndsWith |
True if the value of the comparison field concludes with the comparison value text. This is a case sensitive comparison. |
alphanumeric (text) |
✓ |
Equal |
True if the value of the comparison field is the same as the comparison value. This comparison is case-sensitive. |
alphanumeric (text, numeric, checkbox, code list) |
✓ |
EqualNoCase |
True if the value of the comparison field is the same as the comparison value. This comparison is not case-sensitive. This is available in advanced conditions only. |
alphanumeric (text, numeric, checkbox, code list) |
✓ |
FALSE |
A simple Boolean function that always returns a value of "false". |
none | ✓ |
Greater |
True if the value of the comparison field is larger than the comparison value. |
numeric - (integer, decimal) |
✓ |
GreaterOrEqual |
True if the value of the comparison field is the same or larger than the comparison value. |
numeric - (integer, decimal) |
✓ |
HasRole |
True if the value of the current user in effect has the selected role. This operator is often used to hide sensitive fields from unauthorized users (for example, fields that are "for office use only"). Note: Advanced mode is required to specify the condition's related parameter. |
form security | ✓ |
IsBlank |
True if the value of the comparison field is blank. |
alphanumeric | ✓ |
IsEmpty |
True if the value of the comparison field has a blank value. |
alphanumeric (text, integer, decimal, date, checkboxes, code list) |
✓ |
IsGuestUser |
True if the user is the guest user. (Advanced condition) |
none |
✓ |
IsInGroup |
True if the value of the user is a member of the comparison value's LDAP or AD group. Note: Advanced mode is required to specify the condition's related parameter. |
alphanumeric (text) |
✓ |
IsNotEmpty |
True if the value of the comparison field is not blank. |
alphanumeric (text, integer, decimal, date, checkboxes, code list) |
✓ |
IsNull |
True if the value of the comparison field has a no value. This operator should only be used in advanced comparisons. |
alphanumeric (text, date, checkbox) |
✓ |
IsOpenForm |
True if the eForm is running in OpenForm mode. (Advanced condition) |
none |
|
IsSigned |
True if the document has been signed. (Advanced condition) |
none |
✓ |
IsWebServiceSync |
True if a data sync is currently being performed, such as when syncing data that was initially recorded offline (such as using an iPad at a remote site) to your main service once a connection is re-established. This function is useful for preventing actions from occurring during the "After signing" event that should instead be done during the "After sync signing" event. |
none |
|
LastMonth |
True if the comparison field's date occurs within last month. |
date, time |
✓ |
LastSixMonths |
True if the comparison field's date occurs within the last 6 months. |
date, time |
✓ |
LastTwoWeeks |
True if the comparison field's date occurs within the last 14 days. |
date, time |
✓ |
LastWeek |
True if the comparison field's date occurs within the last 7 days. |
date, time |
✓ |
LastYear |
True if the comparison field's date occurs within the last 365 days. |
date, time |
✓ |
Less |
True if the value of the comparison field is smaller than the comparison value. |
numeric - (integer, decimal) |
✓ |
LessOrEqual |
True if the value of the comparison field is the same or smaller than the comparison value. |
numeric - (integer, decimal) |
✓ |
None |
True if none of the checkbox group items have been selected. |
checkbox groups. |
✓ |
Not |
True if checkbox is not selected. |
checkboxes. |
✓ |
NotAll |
True if any defined sub-condition is true. Note: Advanced mode is required to define related sub-conditions. |
checkbox groups. |
✓ |
NotEqual |
True if the value of the comparison field is not the same as the comparison value. |
alphanumeric (text, integer, decimal, checkboxes, code list) |
✓ |
OneOf |
True if the value of the comparison field is found in the set of comparison values. |
alphanumeric (text, integer, decimal, checkboxes, code list) |
✓ |
SignatureIsDeclined |
True if the given signature field was specifically chosen to be declined when viewing the generated document in the doc viewer. |
signing/signatures | |
StartsWith |
True if the value of the comparison field begins with the comparison value text. This is a case sensitive comparison. |
alphanumeric (text) |
✓ |
TRUE |
A simple Boolean function that always returns a value of "true". |
none | ✓ |
ViewerClosedJustSigned |
True if the viewer was just displayed and a signature was captured (due to the completion of an "after signing" event). Allows you to verify that an automatic close occurred. |
signing/signatures |
Comparison values may be any constant value (such as a given text string or number) or other eForm fields.
You can create complex conditions by specifying more than one conditional clause. Additional clauses are added using the + button (highlighted below).
When clicked, a new clause appears immediately below the clause containing the clicked + button. In the following example, a third clause was added between the two existing clauses by clicking the + button in the first clause.
You can also remove a clause using the - button (adjacent to the + button).
A simple example of a condition would be a test of a field's value. For example, evaluate the value of a preferred contact list (shown below).
In this example, the condition's name is contact_ph_required. The condition's field is contact_optlist. Its operator is set to Equal, and its value is the Home Phone field.
A more complex example, shown below, could involve displaying a preferred contact time if the user entered a home phone number or a cell phone number. Also, notice that the Any of the following option is selected.