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
Sujit KarandeSujit Karande 

Hide Case field on the basis of opportunity product

Hello,

I hope you all are well. Here I am looking for some suggestion to proceed on one of requirement.

Consider, I have 10 fields in Case object :

Field1
Field2
Field3
....
Field10 

And whenever a user creates any opportunity, that user has to add the product. And let's say products are :

P1, P2

And on the opportunity page layout, I have one button which redirects user to create the Cases.

So now, depending on which product user has selected, I want to show those field.

Let's say, If product is P1, I want to show below fields

Field1
Field2
Field3

And if product is P2, I want to show below fields

Field4
Field5
Field6

And the remaining fields should present no matter what the product selected are.

Could you please help me on this?  Any help or suggestion will be really appreciated.
RD@SFRD@SF
Hi Sujit,

The products are these specific or like product categories?

I am going on a idea that you need to create record types and drive it, thats the standard approach or you would have to create a custom visual force page with the help of a developer.

Hope it helps
RD
Sujit KarandeSujit Karande
Hi RD@SF

Thank you for your response. We have some price books lets say (Pricebook1, Pricebook2) and inside those price book, we have different products related to it.