Override Action Link with Confirmation Popup

Add a CSS class to the action link column. In this example the CSS class is 'udaterecord'

  • Not yet re-checked
  • Classic builder

Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

Add a CSS class to the action link column. In this example the CSS class is 'udaterecord'

2) use this code template:

Text
var confirmationText = 'This will set the Contact Date to the current date. Do you want to continue?';

var setOnClickEventsForActionLinks = function(element){
    element.find('.updaterecord a').click(function(){
        var r = confirm(confirmationText);
        if (r === true) {
            return true;
        } else {
            return false;
        }
    });
};

TB.render('component_3',function(data){
    var element = data.ele;
    setOnClickEventsForActionLinks(element);
    $('body').click(function(){
    setTimeout(function(){
        element.find('.action-link-confirm a').off();
        setOnClickEventsForActionLinks(element);    
    },800);
    });
});

Was this page helpful?

Something wrong or missing on this page? Tell us.