1

I have a requirement in cases. I have record type called VARMA, and we have a standard button called "Save & Edit" so, whenever support rep click this button we need to validate subject could not be null.

So, I created a custom button and I am able to display only record detail page, but I am unable to hide the standard button from record edit page.

And my custom button is working fine. Is there any possibility to hide or replace standard button with my custom button for this particular record type, other than VF page?

1

This can be handled with a validation rule on Case object instead of a custom button. The following validation rule formula should work in your case:

AND( 
$RecordType.Name = "VARMA", 
ISBLANK(Subject))

This will prevent a user from saving a Case record if the Record Type is VARMA and Subject field is empty or null.


Also, to answer your question:

You can't replace standard with custom buttons on object's edit page (without creating a custom VF page). There's an idea for this feature, so you can go to that link and vote for it.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.