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 :

@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,

1 Like