You need to sign in to do that
Don't have an account?

Greyed out javascript button on standard object
Hi,
I have a javascript button on click event on opportunity object...it works well..
Now i want if stagename = 'ABC', only then it gets enable ...otherwise it should be hidden or greyed out...
any help will be appreciated...
Thanks in advance!!!
I have a javascript button on click event on opportunity object...it works well..
Now i want if stagename = 'ABC', only then it gets enable ...otherwise it should be hidden or greyed out...
any help will be appreciated...
Thanks in advance!!!
Here is no way to disable button but you can extend your JavaScript code to notify user like:
OR
check this link https://salesforce.stackexchange.com/questions/107508/hide-custom-javascript-button-on-certain-conditions
Thanks
Lokesh
Create a validation rule will solve your purpose
Yhanks,
Satya (me too sflearning) :)
Through standard page, you can achieve such requirement. Override the standard page with custom visualforce page and use apex:detail tag in it. Then you will get control on every individual field, button along with other operations.
If overriding is not your option, create a custom and place it in side bar or footers so that you can get limited access on current standard screen.