Hide ‘Add row’ from child table

js like this

onload: function(frm) {

        frm.get_field('items').grid.cannot_add_rows = true;
}
4 Likes

Thanks man

Worked Well

Hello,
This code worked perfectly but i want to hide add row button after 7 rows and i want to set 50 word limit on each row.

can anyone help me,

Thank you.

frappe.ui.form.on('Listing Properties', {
onload: function(frm) {

        frm.get_field('key_features').grid.cannot_add_rows = true;
}
});

hiii,

I need to hide the “clear table” button in childtable

is there any way same like cannot_add_rows,cannot_delete_rows


frappe.ui.form.on('Your Parent Doctype', {
    refresh: function(frm) {
        frm.fields_dict["items"].grid.wrapper.find('.grid-remove-all-rows').hide();
    }
});