+ Start a Discussion
OnDem DevOnDem Dev 

Can a Detail Page Button on an Object Detail page be disabled ?

Hi,

 

Can a Detail Page button shown on a Custom Object detail page be disabled and later enabled based on the status of the record?

Any help on this will be appreciated.

 

Regards,

OnDem 

Message Edited by OnDem Dev on 08-03-2009 09:41 PM
snugglessnuggles
I've never found a way to conditionally display a detail button other than to reconstruct it from visualforce and utilize the rendered attribute.
RpeeRpee
If you're using Enterprise Edition, you could drive a page layout change through Record Types and Workflow Rules. Let me know if you need further help.
OnDem DevOnDem Dev

Thanks for the response.

Will it even work for Unlimited orgs also.

Can you please help me in how to do that?

 

Regards,

OnDem

RpeeRpee

It would certainly work for Unlimited as well.

 

I can't get too into it here, but the gist of it is thus:

 

Create 2 Record Types with a Page Layout assigned to each. One would have the button you want, one would not.

 

Workflow Rule would fire based on some criteria being met. Picklist value = X, Checkbox = True, etc. 

 

The Workflow Rule would trigger a field update to change the Record Type.

 

Hope this helps.