Configure values displayed in the drop-down fields (for admins)
If you have the CONFIGADM access code, you can create drop-down field filters to limit values displayed in the drop-down fields. For example, you can create filters to show only specific values (that are relevant for the selected dialog or form), or to limit the displayed values based on the value selected in another field from this dialog or form.
- Drop-down field filters use OData filter expressions to limit the values shown in the drop-down. Once a filter is configured, only values that match this filter will be displayed.
- You can configure drop-down field filters for the drop-down fields in all Create new entity dialogs (for example, Create case, Create contact, and Create custom type dialogs), and forms on case, document, contact, and custom type pages.
- You can only filter values in the drop-down fields, not in the contact or party pickers.
- For dependent filters, if value in the parent field changes, the depended field is cleared.
Create a drop-down field filter
- To configure drop-down field filters, you must have the CONFIGADM access code.
- To create a dependent filter between the two drop-down fields, a relation between the parent and a child drop-down values must exist in WorkZone Configurator (under Global > Custom droplists, the child value must have the parent value added to the Belongs to field). This is not required to create a dependent filter between a drop-down field and any regular field from the same dialog or form.
- Open a dialog or a form with the drop-down field that you want to filter.
- Click
to enter the configuration mode.
- Click
Field settings next to the needed drop-down field.
- In the Set up [Field name] field dialog, enter the needed OData query to the Filter query (optional).
Example: Enter a query "
NameCode in ('User1','User2')"(where User1 and User2 are the user codes from your WorkZone database), to filter the Case handler field to show only these users.- You can enter a valid OData filter query directly, or paste it from WorkZone QueryBuilder (click Open QueryBuilder and find the needed query to paste).
- You can only use a filter query that limits the displayed options (that is, you cannot add any new values this way).
- To create a dependent filter, use the following syntax:
${Context.FieldName}, replacing "FieldName" with the name of the parent (referenced) field.Example:
Enter a query:
Copy(${Context.CaseCategory} eq 'PERS' and PartyType eq 'Person')
or
(${Context.CaseCategory} eq 'UNIT' and PartyType in ('Company','ProductionUnit'))to limit values displayed in the Primary Party field based on the selected Case category as follows:
- When Case category is PERS, only parties with Person type are shown.
- When Case category is UNIT, only parties with Company or ProductionUnit type are shown.
- For dependent filters, when value in the parent field changes, the dependent field is cleared.
- For drop-down fields on the existing case, document, and custom type pages: Click Context inspector to see currently related values that you can use.
- Click Preview results to validate your filter and preview what values will be displayed.
-
If the filter cannot be applied, the field is disabled and shows relevant message.
- Click Save to save your created filter.
- Click Save configuration when you are finished customizing the drop-down field (or click
Dismiss to exit configuration mode without saving your changes, or click
Restore to restore the page configuration to default settings). Your saved configuration changes will apply immediately.