删除PickList visualforce顶点中的None选项 [英] Removing None Option in PickList visualforce apex

查看:88
本文介绍了删除PickList visualforce顶点中的None选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个名称为PS_Detail__c的对象.在此自定义对象中,我创建了一个自定义字段.在此选择列表中,我定义了两个值Dollar,Unit . 当我转到"P/S详细信息选项卡"以创建一个新的PS_Detail__c对象时,我在Picklist字段中也获得了None作为值.我只希望将Dollar和Unit作为Picklist值.有人请帮助如何从Picklist中删除此None!

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 !!

推荐答案

正如您所发现的,您不能在对象级别使此选择列表成为必需.但是,如果在页面布局上将此字段设为必填字段,则会从可用选项中删除-None-选项.

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:

这篇关于删除PickList visualforce顶点中的None选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆