You need to sign in to do that
Don't have an account?
U Jay
How can get an alert on click a custom button indetail page of record if a condition met othervise lead to a new window.
How can get an alert on click a custom button indetail page of record if a condition met othervise lead to a new window.
You can do this by creating custom button which contains javascript code and add it to the page layout.
In javascript you can validate your condition.
For this go to Setup --> Objects --> (Your Object) --> ---> Buttons, Links, and Actions --> New Button or Links
Inside this Select Content Source as OnClick Javascript & Display type as Detail Page Button.
Then Write your validation condition, Save it.
Below is the example of javascript Validation :
After Saving add it to the Page Layout.
If this solves your problem, kindly mark it as the best answer.
Thanks,
Vatsal