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
Amit_Amit_ 

Make Custom button visible based on some field value

Hi, 

 

I have a requirement where I have to create a Custom button and place it on case detail Standard page layout but I have to make it visible only if a Value in Status field in case is ="Required" and should not come on case detail page if the status value is other than "Required". 

I am stuck with this, any help is highly appriciated.

 

thanks & Regards,

 

Dhaval PanchalDhaval Panchal

I think it is not possible directly.

 

You can try below.

 

1) Create two record types in case object (one for required and other for other status)

2) Create one workflow/trigger which set record type according to status value.

3) create different page layout based on record type and do not add button for required status page layout.

 

MarcPannenberg.ax1843MarcPannenberg.ax1843

Alternatively, you could create a formula field that checks your field. If status = required, then show a hyperlink or a button image, if the status is not required, show nothing or a different graphic.

 

What does your button do?

Amit_Amit_
Hi Marc,

The Status filed is of PickList type. And on the click of my button I'm opening a new vf page.