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
Prasanth Reddy MPrasanth Reddy M 

'how to make a picklist field required in standard and visualforce pages...'

Best Answer chosen by Prasanth Reddy M
DevADSDevADS
Hey,

You can write following code
ISPICKVAL( Picklist__c ,''), Picklist__c will be your picklist field. If you still facing any issue, Let me know!

All Answers

DevADSDevADS
Hello Prasanth,

You can use Validation Rules to make a picklist field required in Standard Page & On Visualforce Pages You can use Javascript.
Happy Coding!!

Thanks,
Amit
Prasanth Reddy MPrasanth Reddy M
Could you help me with validation rule for making a picklist fild required...
DevADSDevADS
Hey,

You can write following code
ISPICKVAL( Picklist__c ,''), Picklist__c will be your picklist field. If you still facing any issue, Let me know!
This was selected as the best answer
Prasanth Reddy MPrasanth Reddy M
Hi, It worked form me, Thank you very much... Regards, Prasanth.
DevADSDevADS
Hey Prasanth _Reddy,

Click on the Star Icon aside if this post provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.