Configuring Link Display Conditions
When you customize a link, you can control how and when it displays. Display conditions ensure that your configured link displays only when and to whom you want. These link display conditions can trigger either from a field on the dataform, or from a trigger value returned in a Header proc (custom code developed by our development team). Display conditions appear in the Add section of the Configure Links Detail form. You can add multiple display conditions.
By default, multiple display conditions are treated as OR statements when determining display behavior unless a Condition Expression is configured for this link. Adding a Condition Expression makes the triggering condition explicit, meaning that display conditions not included in the Condition Expression are ignored. For a detailed explanation of how condition expressions work, see Condition expressions.
In the Add area of the form, you define conditions using Source, Field, Operator, and Value. You assign the condition a name using Label. Label values are used in the Condition Expression field located before the Add area.
You can use multi-lookup fields for triggering conditions (Field and Value columns in the Add section). Each value from the multi-lookup can be added as a separate = condition. This supports complex AND, OR, and NOT conditions. The following image is an example of conditions using the = Operator and a Condition Expression. The example specifies that both conditions SYR and NY must be met.
To configure link display conditions:
- Click Add.
A row opens with the following fields: Source, Field, Operator, Value, and Label. - Complete the fields as appropriate.
Source |
This is where the system looks to find the trigger value that matches your condition. The options are:
|
||||||
Field |
This is the field that is interrogated for the trigger Value. The available fields are determined by what you selected in Source. You can use multi-lookup fields as triggering conditions. Each value from the multi-lookup can be added as a separate = condition. This supports complex AND, OR, and NOT conditions. |
||||||
Operator |
Operator options are dynamic and are driven by the datatype selected in Field. Options are Equals, Does Not Equal, Empty, Greater Than, Greater Than or Equal, Less Than, Less Than or Equal, and Not Empty. |
||||||
Value |
This is the value in the trigger Field that evaluates to true and must match the value stored in the database. Start typing a Value when Field is a parent form or a lookup. Value can also be blank (Empty) when triggering links from Form Data, enabling display conditions when a field is empty. Blank is only valid when the Source is Form Data. |
||||||
Label |
Provide a Label when building a condition expression in the Condition Expression field. Examples of a Label could be Cond1, Cond2, Cond3. Additionally, you may want to be more descriptive. If you are filtering for a city, then use the city name, such as NYC, or use NY to represent a filter for the state. A best practice is to use short names. |
To clone a trigger:
- In the Add section, locate an entry that you want to copy.
- Click Clone.
A new row opens, with the trigger condition copied. Source, Field, and Operator are copied.
- You can now edit the new condition as appropriate.
- When ready, click Apply or Save.