How prevent adding of rows in a Child Table

Good day,

How can i prevent adding of rows in a Child Table

@imbra use this js code where items is the table name:

frm.get_field("items").grid.cannot_add_rows = true;
refresh_field("items");
2 Likes

Thank you. It worked