Child table trigger event in erpnext

How we can trigger an event when we click on the button (‘Add New Row’) of child table?

Please see this :

https://frappe.github.io/frappe/user/en/guides/app-development/trigger-event-on-deletion-of-grid-row.html

@Mohammed_Redha It is not working. We need to fire event click on button not ‘field’

1 Like

@vaibhavk Can you please share your code?

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