Hi Guys
I’m trying to add a confirmation dialog to a Action link. Simple “Are you sure”. I have tried with this
(document).on('knack-view-render.view_407', function(event, view, record) {
$('.col-15 a').each(function(){
$(this).on('click', function (event) {
if (confirm('Delete selected item?')){
return true;
} else {
event.preventDefault();
};
});
});
});
I have also tried a couple other methods, but it is always works the same. Dialog box will apear and it doesn’t matter if I’ll confirm or Cancel, the action is executing anyway (Soft delete in my case). Can you help me with this?