Modify the User Experience
In the previous step, you created fields to manage the data. Now, make sure that employees have a great experience logging their suggestions by arranging the fields in a usable manner, bringing the most important fields to their attention, and making common tasks easy to do.
Changing the UI for the browser pages involves modifying the Suggestion object's page layout. Add a Global Action to make it easy for employees to add suggestions wherever they are in the Salesforce app.
Modify the Page Layout
- Click the gear icon and select Setup. This launches Setup in a new tab.
- Click the Object Manager tab.
- From the list of objects, click Suggestion.
- Select Page Layouts, click the arrow dropdown for Suggestion Layout, and select Edit.
- Scroll to Suggestion Detail.
Now add new fields to the Information section.
- Click the Status field and drag it to the Information section, under Owner.
- Click the Implemented Date field and drag it to under Status.
- Click Quick Save.
Now add a new Description section and rearrange the remaining fields.
- In the palette, click Section and drag it down until a green bar appears above the System Information section. Drop it there to create the section.
- In the Section Properties box, enter
Description
for the section name.
- Choose 1-column for the layout.
- Click OK.
- Drag the Suggestion Description field into your new section. Your page should look like this when finished.
- Click Save.
Add a Global Action
Things are looking pretty good, but from talking to employees about how they work, you’ve found that they think of suggestions while they’re doing other tasks and don’t want to leave what they are doing to submit a suggestion. For example, if an employee is entering a contact name and thinks of a customer service suggestion, the employee has to do the following to enter a suggestion.
Example
- Navigate to the Suggestion object
- Click New
- Fill in the suggestion information
- Save
- Navigate back to the contact record
- Try to remember what they were doing!
End of Example
You want to make it easier for employees by reducing the number of clicks and keeping them in context. You can do this with a Global Action.
- Click the gear icon and select Setup. From Setup, enter
Global Actions
in Quick Find, then select Global Actions.
- Click New Action.
- Enter the action details.
- Action Type: Create a Record
- Target Object: Suggestion
- Standard Label Type: New [Record]
- Name:
New_Suggestion
- Click Save. This takes you to the Global Action layout so that you can select the fields to display when the action is selected.
- Drag Suggestion Category and Suggestion Description onto the New Suggestion layout so that employees can enter those values when creating a suggestion.
- Click Save.
- In the Predefined Field Values section, click New.
- Enter the predefined field value details:
- Field Name: Status
- A specific value: New
- Click Save.
You created a new action, but users can’t see it yet. Fix that next.
- From Setup, enter
Publisher Layouts
in Quick Find, then select Publisher Layouts.
- Locate the Global Layout and click Edit.
- Under the Salesforce Mobile and Lightning Experience Actions section, click override the predefined actions.
- On the left side of the palette at the top of the page, select Mobile & Lightning Actions, then select the New Suggestion action and drag it into the Quick Actions in the Salesforce Mobile and Lightning Experience Actions section after Post.
- Click Save.
Try Out the App
- In the Suggestions tab, click New.
- Fill out a suggestion.
Note: Notice how the experience has changed in the page layout.
Resources