Hi I am using the raddock and when a user clicks the close button it fires a server side method which marks the selected raddock item as deleted. Thing is I want to ask the ask if they are sure before doing so.
I wrote this piece the js below which fire ok but the server side event is hit whether the user selects yes or no.
Any help would be appreciated.
Thanks,
Dave J.
I wrote this piece the js below which fire ok but the server side event is hit whether the user selects yes or no.
Any help would be appreciated.
Thanks,
Dave J.
function OnClientCommand(sender, args) {
if(args.Command.get_name() == "Close")
{
var r = confirm("Are you sure you want to delete this Form Field?");
if (r == true) {
return true;
}
else {
return false;
}
}
}