Closed rodriggj closed 2 years ago
Setup / Object Manager / Car / Fields & Relationships
Process:
Category
field. Start by clicking New
buttonStep 1. Choose the field type
, select Picklist
, click Next
Step 2. Enter the details
,
Categories
Next
Step 3. Establish field-level security
, these are Roles that you can specify visibility permissions. We only have the System Administrator role for our App so we need this to be checked and by default it should be, so leave the defaults and click Next
Step 4. Add to page layouts
, the default should be Car Layout
which should be checked , click Save
We have 2 other picklists beyond the Categories
example above. This is for fields Control
& Make
Control
Make
If you no go to the Car Hub
app via the App Manager
select the Cars
Tab, and click New
you will see a modal display with a layout for adding a new Car
record.
Setup / Object Manager / Car / Page Layout / Car Layout
Save
Now if you want you can go to your Car
app and you should be able to click new and see your new modal with your Page Layout
configuration.
NOTE: This maybe the first time that you begin to see an issue with Salesforce Lightning Web Components, which is
Cache
. Salesforce as a Platform willCache
Page Objects, Layouts, etc. Often you must click theRefresh
button for changes to take effect. Also it is commonly reported that you need to complete aHard Refresh
or utilizeIncognito
mode to avoid cache issues. This comes with additional unintended consequences and odd behavior.REFERENCE: How To Fix The Caching Problem In Salesforce Lighting Component
Here we will use the
Salesforce Object Manager
service to create theSchema
of theCar
custom Object.The fields we will add are depicted in the picture. Use the picture for appropriate configuration details.