OroCRM allows users to create custom fields in order to collect additional details that are not included out of the box. For example, the contacts entity has fields of information such as name, address, phone number, and so on. But suppose you wanted to capture additional details, such as their tumblr handle so that you can target this user for various promotions.
While many social media ID fields are provided on the contact record out of the box, a new field is required. A custom field added to the contact entity allows you to capture this information.
To create a custom field:
- Navigate to the main system menu and select Entities and then Entity Management
- Select the contacts entity.
- The Contacts Entity record displays.
- Click the Create Field button in the top right-hand corner of the screen.
- A blank General Information Entity form displays. This grid contains all the existing fields related to this entity.
- Define the Field Name. For this example, we’ll use TumblrID
- Select a storage type.
The serialized field allows admins to create simple custom fields that keep information for a single entity without a schema update. This means that there is no need to shut down/restart the system in order for these fields to display.
- Serialized fields cannot be used for grid filters, for reporting, chart generation, data audit, or creation of segments and relations.
- Serialized fields cannot be used for files, multi-selects, or option sets.
- Table Column stores field values to a database table. A schema update is necessary for this field to be available.
- Chose a field Type. For this example, we can choose a string value for our Tumblr ID. Other values such as date and time, currency, integers, and images are just a few of the pre-formatted fields available.
- Click the Continue Button in the top right-hand corner of the screen.
- Depending on what has been selected for the field Type, additional fields are displayed.
General Information
- Enter a label for the field. The label is the name displayed for the field in the user interface and does not need to match the field name. For example, the field might be called “Tumblr” but the label might say “Tumblr Handle”. By default, the name of the field is automatically listed as the label, but you can change this value.
- Fill out the description. The information detailed in the description field displays on the user interface when hovering over the information tooltip icon on the left of the field when entering data. This field is not required but is highly recommended to help guide users who may need a better understanding of the information required for that specific field.
Click the Import and Export Link. This section details name and placement of the custom field for importing and exporting only.
- Define Column Name. If no name is used here, then the default Label will be used. This will be the name/column in the CSV file.
- Type Column Position. Type a number that corresponds to the position of this field in the .csv file that contains entity records.
- The use as Identity field defines if this field will be added to record identification. An example of a field used as an identification field is the contact name. Additionally, this field is used to determine unique values in the CSV file.
- In the Exclude Column? Field, select NO if you want this field available for Export or Yes if you wish to exclude the column. This means this field will not be included in the csv export file or any Other.
- In the Available in Email Templates field select Yes if you’d like this field to be available for use in templates.
- The contact information field has 3 possible values:
- If you leave this field empty, this custom field will not be treated as contact information.
- Selecting email in this field means that the values of the field are treated by marketing lists as email addresses.
- If Phone is selected, the values of the field are treated by marketing lists as a phone number. For our example, I’ll leave this field blank, as the information in this custom field is not contact information.
- The Add to Grid Settings options control the availability and display of a field in the Grid. By default, “Yes and Display” is selected by default and makes the field available for use in the grid. Yes and do not display means the field is hidden by default and Yes as Mandatory adds it permanently to all grid views.
- Show Grid Filter – Select Yes if you wish to have the new field’s filter displayed on the user interface by default. Select No, and it will not be displayed by default, but you can add it as a filter if needed.
- In the Show on Form field, select Yes if you wish to have this field displayed and editable on record and page edits. The ability to edit depends on the permissions of the logged-in user.
- In the Show on View field, select yes if you would like the field displayed on record view pages.
- Priority defines an order of custom fields on entity record view, edit, create pages, and on the respective grid.
- Custom fields are always displayed one after another, usually below the system fields. If no priority is defined or the defined priority is 0, the fields will be displayed in the order in which they have been added to the system. The fields with a higher priority (a bigger value) will be displayed before the fields with a lower priority.
- If the searchable field is set to yes, this field will be indexed and returned in search results.
- Select if the field is an auditable field. If set to Yes, the system will log changes made to these field values when users edit entity records. Not available for serialized fields.
- Applicable Organizations check box determines if you want this field to be available throughout all organizations.
- When you are finished configuring your new custom field, click the save and close button in the top right-hand corner of the screen.
- Please note that before any field is viewable on a form or a view page, users must first update the schema. Serialized data fields do not require a schema update. Once you have finished configuring your field, click the red “update schema” button in the top right-hand corner of the screen.
- Return to the customer contact grid and create a new contact. You will notice that our new field has been created under the additional link.
Example 2 Selector
Another example of custom field creation allows you to select one of a number of options. We can demonstrate this by navigating back to the entities grid and selecting the contacts entity.
- Click the Create Field button in the top right-hand corner of the screen.
- A blank General Information Entity form displays.
- Define the Field Name. For this example, I’ll use Location to demonstrate multiple choice selection.
- Select Table Column for Storage type. This type of custom field saves this information to the database and requires a schema update.
- Chose a field Type. For this example we can choose select, to give the user the option to use a drop-down menu to select one of several possible choices.
- Click the continue button.
- On the right of the screen, you will see a field to add available options for your new selection field.
- Enter West Coast (click the add button)
- Enter East Coast (click the Add Button)
- Enter Remote Office
- Click the checkbox next to one of the choices if you would like one of these options to be set as default.
- You can drag and drop these options in the desired order by clicking on the option using the (up/down) arrow to move the options into the correct position.
- Fill out the rest of the form according to the instructions in the previous step.
- When you are finished creating the custom field, click the Save and Close button in the top right-hand corner of the screen.
- When you return to the view page of the contact entity, you will see a red update schema button in the top right-hand corner of the screen. Click on the red button to update the schema. Please note that if you do not complete this step, your field will not be visible in the user interface.
After the schema has been updated, navigate to the customer contacts option and click the Create Contact button. Now when creating or editing a contact record, you can see the new custom select field.