Hidden the add row button in child tabl

Hi @mohamed_ibrahim,

Please apply the client script.

// Syntax
frappe.ui.form.on('Your DocType', {
    refresh: function(frm) {
        // set your table field name
        frm.set_df_property('your_table_field_name', 'cannot_add_rows', true);
    }
});

// Example
frappe.ui.form.on('Sales Order', {
    refresh: function(frm) {
        frm.set_df_property('items', 'cannot_add_rows', true);
    }
});

Thank You!

2 Likes