How can I hide a field on the Details page, but keep the field updatable using the Action Bar?
You can hide a field by creating and applying an empty field template to it. For example, you might want to hide the Win Probability field from the opportunity details page because Win Probability is already displayed in the page header. Salespeople can update the Win Probability using the Update action in the Action Bar.
Here's how to create and apply an empty field template:
-
Navigate to the edit rule set for the object.
-
Copy the default layout.
-
Add fields to the copied layout of the rule set.
-
Click the field you're hiding.
-
Click Create a Template in the Properties pane.
-
Provide the template name, ID, and description.
-
Open the template to the code view.
-
Remove the lines of code within the template except for the template ID details.
<template id="<name-of-hidden-field"> <oj-input-text value="{{ $value }}" label-hint="[[ $labelHint ]]"></oj-input-text> </template>