You need to sign in to do that
Don't have an account?

I want custom "del" link in VF page , Any Idea ?
Hi,
I want to build custom page that has a link "del and Edit" like what we have in standerd detail list section of any objects like lead.
If Del link is clicked than i want one confirmation dialog box and after saying yes then records should be deleted.
I unable to create java script dialog box can some one any IDEA..:)
Thanks all,
Deepak
This should do the trick:
<apex:commandLink action="{!delete}" onclick="if(!confirm('WARNING: This will remove the selected item.')) return false;">
Delete
</apex:commandLink>
Credit for this goes to Jill Wetzler as she was the first person I've seen to post this cool trick.
-Jason
All Answers
This should do the trick:
<apex:commandLink action="{!delete}" onclick="if(!confirm('WARNING: This will remove the selected item.')) return false;">
Delete
</apex:commandLink>
Credit for this goes to Jill Wetzler as she was the first person I've seen to post this cool trick.
-Jason
Thank you so much Jason and Jill :)
It is really helpfull.
-Deepak
onclick="return confirm('warning:')"