The DiliTrust Entities Module allows you to create Conditional Fields—custom fields that appear only when specific conditions are met.
In this example, we'll create a field called “Identifier”, attached to all Companies, which will display different input types depending on the selected Geographic Area.
- Create a Reference List
- Create a Custom Field of List Type
- Define Conditional Logic
- Attach your newly created conditional field on your entities
Create a Reference List
Go to:
Configuration > Data Customization > Reference List
Create a new list named Geographic Area, and populate it with relevant regions (e.g., Europe, America, Asia, etc.).
This list will be used as the Type in a conditional custom field.
Create a Custom Field of List Type
Go to:
Configuration > Data Customization > Custom Field
Select New Custom Field, that we’ll call “Identifier”, attached to Companies, of Type Geographic Area and select the Conditional checkbox.
Define Conditional Logic
Now, select the “Identifier” field from the list of custom fields and create Linked Fields that depend on the selected value:
European Identifier → shown if Geographic Area = Europe (Type: Text)
American Identifier → shown if Geographic Area = America (Type: Number)
(No field displayed for other values)
N.B. It is possible to get up to 3 level of condition.
For Example, we could have a list of countries depended on the geographic Area, the Identifier could have been depended on the Nationality, and the list of available countries could be dependent on the choice of Geographic Area.
Attach your newly created conditional field on your entities
Once the Field is created and your logic is correctly inserted, you can attach the newly created conditional field to your Entities either during its creation or you can edit a company's profile and add the conditional field.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article