Removing None Option in PickList visualforce apex

不想你离开。 提交于 2019-12-11 03:54:32

问题


i have created an object with name PS_Detail__c .in this custom object i created a custom field .in this picklist i defined two values Dollar ,Unit

. when i go to P/S Detail Tab for creating a new PS_Detail__c object then i get None also as a value in picklist field .i want only Dollar and Unit as Picklist values .some one please help how to remove this None from Picklist !!


回答1:


As you have discovered, you cannot make this picklist required at the object level. However, making this field required on the page layout will remove the -None- option from the available options.

To do this, edit the page layout on your object and select the wrench icon next to your field:

Then, you should be able to check the "Required" box in the dialogue box that pops up:



来源:https://stackoverflow.com/questions/16109797/removing-none-option-in-picklist-visualforce-apex

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!