The standard lookup UI from Salesforce can be configured to make it easier for users to recognize the correct record to select and filter out those that are not relevant, and, if necessary, prevent them from deleting records that are in use elsewhere in your application, all without writing any code.
Perform the following steps in the package org to try out this process:
- Create Tabs for the Driver and Race objects.
- Add an Active checkbox field to the Driver Custom Object; ensure that the default is checked.
- Create a driver record; for example, LewisHamilton.
- From the Season record created in the previous section, create a Race record; for example, Spa.
- Associate LewisHamilton with the Spa race via ...