You need to sign in to do that
Don't have an account?
Gattam Rakesh (SFDC)
How to override a standard Button with a popup message
Hello all ,
Can any one tell me how to override a standard button with popup message
for example if the user click on new button in Account Page he need to get a popup message "Sorry you account create a new Account"
Can any one tell me how to override a standard button with popup message
for example if the user click on new button in Account Page he need to get a popup message "Sorry you account create a new Account"
If user passes all the criterias then you can redirect User to new Account creation Std. page using script- Window.location = '\001\e' ;
Create A Custom Vf page with this script
<script>
alert('Sorry you account create a new Account');
window.location.href='/001/o';
</script>
and overide new button with this..
When you a Create your Custom page set standardcontroller="Account" as if you will not set it then your page will not be shown in Visulaforce Page Picklist in overide option.
You can also hide your Order Tab for particular profile in Profile Detail page.you can acheive your output with this. Why do you want to override your standard new button?
You need to create a visualforce page by copying this code, then override your "New" button in object Order with this Visualforce page.
It Works But my Requirment is it shouldnot redirect to V.F Page Just A popup message Should Come in the same Page once we click on New Button
I dont't think there is any Option to override your standard new button with javascript.
Dushyant is right!! , you can see here:
If you are expecting to create a "New" custom button with javascript code then where can we assign your "New" button to "New" standard button? since its only for Visualforce page here, Btw custom button can be added in Page Layout and Visualforce page