You need to sign in to do that
Don't have an account?
Help with Java script!
Hi,
I have a custom button (Remove Contact) on my Standard Contact Object, which when clicked does a Logical deletion.
I have implemented this using VisualForce Page and a controller extension that extends standard "Contact" object.
So, i am overriding the "Remove Contact" button with my visualforce page. when i click on the button it executes the business logic and displays the VF page accordingly.
But, my use-case also requires to prompt a "User Confirmation" like "Do you want to remove". Based on the user response then i have to carry out my business logic. I think we need to use Java script for this when i override "Remove Contact".
But how do i call my VF page after capturing the User response on the confirmation.
Here is my VF page:
<apex:page standardController="Contact" extensions="Inactiveandmove" action="{!Move}" >
</apex:page>
Any help on this is highy appreciated.
Thank You!
You can add some custom javascript like below:
Thanks for your reply!
My question is how would i call a controller extension method when my Button behavior is " Onclick Javascript"?
Thanks,
Sales4ce