ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

Disable "Remove" Button to stop deletion of child table records


#1

Dear Team,

Kindly suggest, how to Disable “Remove” Button to stop deletion of child table records.


#2

@KanchanChauhan can you help with the solution?


#3

Did you try setting up the Permissions in Role Permission Manager?


#4

But It dint work for child table


#5

@Ram_Gopal_Rao did you find any solution ?


#6

I hope this will help you.


#7

Try this:
$('*[data-fieldname="items"]').find('.grid-remove-rows').hide();

where ‘items’ is your table name in your doctype.