Creating custom fields

Custom fields are unique to your business needs and can not only be added and amended, but also deleted. Creating custom fields allows you to store the necessary information for your organization. Both standard and custom fields can be customized to include the custom help text that helps users understand how to use the field. Custom fields are usually identified by a __c suffix.

A business scenario: David Guzman is working as a System Administrator at Universal Containers. His manager, Brigette Hyacinth, would like him to create a custom field to save all participants' social security numbers, but at the same time, he doesn't want to share the field value with every sales rep as the social security number is confidential information.

To create a custom field on a registration object, follow these steps:

  1. Click on Setup (gear icon) | Setup | PLATFORM TOOLS | Objects and Fields | Object Manager.
  2. To find the registration object, enter the first few characters of its label or name in the find in page box:

    Creating custom fields

    Click on the object label, which, in this scenario, is Registration.

  3. The next step is to navigate to the Fields & Relationships section and click on the New button. It will redirect you to a new page where you have to select the data type. For the current business scenario, select Text (Encrypted) and then click on the Next.
  4. It will open a window for you, where you have to enter the following details:
    1. Field Label: Enter the label for the custom field. In this case, enter the social security number as Field Label.
    2. Length: Enter the field length; in this case, enter 9.
    3. Field Name: This will be autopopulated, based on the Field Label.
    4. Description: Write some meaningful text, so other developers/administrators can easily understand why this custom field has been created.
    5. Help Text: Write some meaningful help text, so whenever users hover on this field, they will easily understand what they have to enter in this field.
    6. Required: You can make this field required by using this option. Best practice is to use a validation rule to make a field required. Don't select this checkbox.
    7. Mask Type: For the mask type, select the social security number.
    8. Mask Character: For the mask character, select X.

      It will look like the following screenshot:

      Creating custom fields

    Click on Next, once you are done.

  5. The next step is to Establish field level visibility and add fields to the page layout.
  6. Once you are done, click on Save.

Use a permission set to grant users access to encrypted files. In a similar manner, create a few custom fields that are marked in numbers on the registration object:

Creating custom fields

For picklist Meal Choice, use Chicken, Fish, and Vegetarian as the values.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.150.119