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 

Force user to choose a picklist

Hello,

I have a picklist with values A, B, C in them,

I want to force the user to chooseat least one of the choice.
Is there any standard way or should i implement any validation rule ?

Thank you for suggestion!
 
Best Answer chosen by Ab
ManojjenaManojjena
Hi Sandrine ,

You can write validation
ISPICKVAL(PicklistFieldName, "")  
Else if your field is visible in page layout you can check the required check box mandate in layout .

Both approch you can take to make mandate a picklist value .

Thanks
Manoj
 

All Answers

SRKSRK
least one, you mean the valus which is added least in picklist ??

while adding you can make that value defult, so it come defult and you want if user select only that option wny are you giving any other options,
farooq ahmed 6farooq ahmed 6
Hello Sandrine,

You can make that picklist required from the page layout. Then user must select any one value from the picklist.

If you find the answer correct make it as correct


Thanks,
Md Farooq Ahmed
ManojjenaManojjena
Hi Sandrine ,

You can write validation
ISPICKVAL(PicklistFieldName, "")  
Else if your field is visible in page layout you can check the required check box mandate in layout .

Both approch you can take to make mandate a picklist value .

Thanks
Manoj
 
This was selected as the best answer
SRKSRK
Writing Validation Rule will be a good idae if you want this field to be
mandate foe any kind of update, i mena data loader, code aor nay API any where

If you dont want that it will be batter to make it required from page layout level only