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

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

问题描述

我创建了一个名为 PS_Detail__c 的对象.在这个自定义对象中我创建了一个自定义字段.在这个选项列表中我定义了两个值 Dollar ,Unit.当我转到 P/S 详细信息选项卡以创建新的 PS_Detail__c 对象时,我也得到 None 作为选项列表字段中的值.我只想要 Dollar 和 Unit 作为选项列表值.请帮助如何从选项列表中删除此 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 apex 中的 None 选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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