function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Regina94Regina94 

Record Type with only ONE Picklist Value

Hi, we are in the following situation:

We have a custom object (from an installed package): On this object we can configure a product - there are many custom picklists (we created) which contains certain options for a product. Adding of a product is done via Visualforce Page (managed, not editable for us). We add this picklists to the Visualforce Page via field set. It means that it is not possible to have seperate page layouts for different record types because changes in the page layout are not reflected in the visualforce page. The only way is working with Field Visibility. This we did.

Now the following problem:

We have two Record Types: A and B. The record type is based on the Sales Country of a product. (=One record type for Country A and one for Country B). For users of Country A we can make only Country A fields visible and hide Country B fields in the profile. But for users who have access to Country A and Country B we can't hide fields based on the profile. They are not allowed to select an option of an Country A field if the Product belongs to Country B. That's why we have removed all available picklist Values of the specific Country A field in the Record Type B. But at least one option should be available, so we have a custom "None" Value. This should be the only option for a Country A field on Record Type B. But it is not working, the Salesforce --None-- can't be removed, see below:

User-added image

Is there any approach how to have only one None Value without other options for a record type?
(Or is it possible to create a process which sets the field visibility for a profile based on conditions, e.g. if Record Type A is selected Field Visibility for Country B fields is false)

Please help.