简体   繁体   中英

How can I hide a subject in subject field, just like hiding an item from optionset field in MS Dynamics CRM 2015?

It is easy to remove an option from an option set.

 var control = Xrm.Page.ui.controls.get("casetypecode");
 control.removeOption(1);

But, when you try to remove a subject from a subject field, it does not work.

This is the type:

在此处输入图片说明

This is how it looks when expanded:

在此处输入图片说明 Can anybody help about this?

I just don't think that removeOption is going to work the subject field, it isn't an option set field - based on your image it is listed as a lookup.

Given that subject is a special field, I'm not sure which options are open to you. If it behaves like a normal lookup you might be able to use the lookup functions to filter the view.

Lookup control methods

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM