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
AbAb 

making picklist required

Hello,

I have a picklist on a page, I want to make that field mandatory. I dont have option like Required like other fields.
Can i add any validation rule or any other method
Best Answer chosen by Ab
anand k 11anand k 11
Hi Sandrine,


You can do this from the page layout. Click the wrench when you highlight the field on the page layout and select the Required checkbox and save. 


You can also use a Validation Formula like this:
ISPICKVAL(PicklistFieldName, "")  

http://www.salesforce.com/customer-resources/learning-center/details/tip-sheets.jsp


Thanks
Anand

 

All Answers

anand k 11anand k 11
Hi Sandrine,


You can do this from the page layout. Click the wrench when you highlight the field on the page layout and select the Required checkbox and save. 


You can also use a Validation Formula like this:
ISPICKVAL(PicklistFieldName, "")  

http://www.salesforce.com/customer-resources/learning-center/details/tip-sheets.jsp


Thanks
Anand

 
This was selected as the best answer
AbAb
Hiu do you know, how can i make the Red bar for it like the mandatory ones
Shayleen MasonShayleen Mason
Can you make a picklist required in a Knowledge Article?