You need to sign in to do that
Don't have an account?
Tena
Pop-Up for Standard page on Save
How do I get a pop up when the user clicks on Save(Opportunity and Case)? I just have to give them messages that they have to say OK to. I don't see how I do it...I found an article over 2 years old but it doesn't come close to working for me. What am I missing?
I guess you could simple javascript alert tags to invoke the pop up and display the message.
I know I can do it on the loading of the page. I would be OK with doing it on the "edit" button also but what about the inline editing? I am unsure how to get around that. Have you done it with the Edit or Save button?
Hi,
I think it can be able to do using javascript.
below sample code,
<apex:commandButton value="Save" action="{!Save}" Onclick="call();"/>
<script>
function call()
{
alert("ok");
}
</script>
Would this require me to override the standard save button? So I would have to make a new button and then hide the standard one. Is that right?
Hi,
it is right. once click save button the pop up window will be displayed if click 'OK' means after that save record.
I am not sure if I understand. The example:
<apex:form >
<apex:commandButton value="Save" action="{!Save}" Onclick="call();"/>
</apex:form>
<script>
function call()
{
alert("ok");
}
</script>
Requires me to create(appex:commandButton) a new Save button but doesn't override the standard Save button. Is that correct? If so then I need to know how to remove the Standard "Save" button. It isn't an option on the page layout. It would also mean that the Save button would always be on the screen rather than just the edit. I would pefer also not to do too much of hacking or use items that are browser limited.