function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
arasuarasu 

How to display a red bar next to custom picklist field to indicate they are required?

Hi,
 
How can we display a red bar next to a custom field (picklist and picklist-multiple select) to indicate they are required?
 
I know that for custom text fields, the red bar is displyed when are defined as required, but not for custom picklists. The issue is that users enter all information for fields that has the red bar, but finally when they save it, then the page displays another bunch of error messages for the custom fields that are of type picklist.
 
Any feedback to this is greatly appreciated.
 
Thanks,
Ambili
sean33043sean33043

Are you sure the picklist field is set to be required?

In setup, check the layout of the object with your custom picklist field. If it is required, you will see a red star next to it. If not, edit the layout, double click the picklist field and checkmark the "required" box.

You can also edit the picklist field, click the "view field accessibility" button. You should see "Required" in red for each profile you want the field to be required.

Hope this helps.

Sean Shannon

arasuarasu

Hi Sean,

Thanks for your response. It works when we define the picklist fields as required from "page Layout".

Thanks,
Ambili