If you need to add more than 200 options to a dropdown list for records, you can create a custom object and then select the custom object that you created as the data type for the dropdown list.
Note
The limit for the number of options that you can add to dropdown lists is 200. If you need more options, you can create a custom object. The limit for the number of options for custom objects is 1,000 .
Best practice is to avoid dropdowns with too many options because it is difficult for users to choose an option. Even when you use typeahead, the user must know the name or the first few letters of the name of the option to choose it.
You can restrict the number of options that are displayed by creating a dependent dropdown. See Tutorial: Creating dependency dropdown lists.
Figure: A dependent dropdown that uses custom objects to populate the options in the list.
Scenario
In this scenario, you want to add the employee's department to their users record.
To do this, you complete the following actions:
- Create an object that contains a list of the departments in your organization.
- Add a field to the People's page that references the departments' object.
Creating the object
- Click Configuration > Data Model > Objects.
- Click Create new object
.
- Type Department as the name of the object.
- Type the description.
- Click Save.
Result
You created an object so that you can create a list of the departments in your organization.
If you use a custom object that was created by another user, you must grant read and write privileges to your role for the object that was created.
Adding the records
Repeat this procedure until you have added a record for each department in your organization.
- Click Data Model > Objects.
- Search for the Department object.
- Click the Total Records value.
- Click Add
.
- Type the name of the department, such as Human Resources.
- Click Create.
Tip
Save time when you add multiple records. When you save a record, click Save & New instead of Save.
Adding a field that references the object
- Use search to find the Users object.
- Click Users.
- Click Add
.
- Type Departments as the name of the field.
- As the data type, select the departments' object.
- Make your changes.
- Click Create.
Tip
Reduce the noise and performance workload! Only select Add Updates to History for auditing purposes or for triggering workflows. This will eliminate the unnecessary processing of data and have a positive impact on the performance of your Oomnitza instance.
Result
When a record is added or edited on the People page, the department that the employee belongs to can be selected.
Comments
0 comments
Please sign in to leave a comment.