Trigger an event when table row is checked

How do I trigger an event when one or more child table rows are checked?

Screenshot%202022-03-30%20at%2018-00-55%20TNCY-New%20Person%20Name-Property%20222-123111-004
I want to have more buttons appear the same way delete appears is child tables when rows are checked. Thanks.

did you get answer?

Hello, sorry for late reply. No, I did not. Ended up using buttons that are always visible to the user. Did you?

Hi @Peter_Macharia @nikita_sharma:

Try this in client script:

frappe.ui.form.on('Purchase Invoice', {
    refresh: function(frm) {
        frm.fields_dict.items.grid.wrapper.on('click', '.grid-row-check', function(event) {
            // Trigger your desired event here
            console.log("Do your thing here!");
        });
    }
});
2 Likes