Hello,
I want to hide that clear button show in attach field i try below code but that not working can any one help me on this,this is urgent requirement
Thank you.
frappe.ui.form.on(‘Vehicle’, {
refresh: function(frm) {
$.each(frm.doc.vehicle_table || [], function (i, row) {
if (row.toll_bill_attachment) {
row.toll_bill_attachment.$wrapper.find(‘[data-action=“clear_attachment”]’).hide();
}
});
}
});