How we can trigger an event when we click on the button (‘Add New Row’) of child table?
Please see this :
frappe.ui.form.on(‘Sales Order Item’, {
item_code: function(frm, cdt, cdn) {
// call on change
},
items_add: function(frm) {
$(“div[data-fieldname=‘items’] .octicon-triangle-down”).click(function(){
// call function
});
}
});
The new link is here, https://frappe.io/docs/user/en/guides/app-development/trigger-event-on-deletion-of-grid-row
1 Like