You need to sign in to do that
Don't have an account?

How to Remove --None-- from Picklist values which is on VisualForce Page?
How to Remove --None-- from Picklist values which is on VisualForce Page?
Removing --None-- from the Picklist Values.
Removing --None-- from the Picklist Values.
Use A SelectOption object, specifies one of the possible values for a Visualforce selectCheckboxes, selectList, or selectRadio component.
Follow Link:
http://www.salesforce.com/docs/developer/pages/Content/apex_pages_selectoption.htm
http://www.sfdcpoint.com/salesforce/custom-picklist-in-visualforce-salesforce/
P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
Thank you
BLearn - Sai
Thansk for Reply. I am not using SelectOption Object here.
I have 2 field which have more than 250 List of Values in thos picklists. and having Dependency.
So I cannot hardcode 250 values using SelectOption object right.
I am using <apex:inputField Value="{!option}" /> tags and generationg form Object Fields. There i given Dependence.
Language
Category
If i select Language as 'English' the dependent value in Category should be ALL
if i select "French" category should be ALL_fr(and some more additional alues
Thanks,
Srinivas
<apex:inputField Value="{!option}" required="true"/>
This will remove the --None-- option and make it as required (I believe thats what you are looking for). If not, you may have to write a javascript code to remove the --none-- value. But to me it's the same as making it required at the VF page level.
dependency is there for two fields. How can we remove using Java Script?
It worked for me.
Thanks for your help.