Hello,
toll_bill_attachment this child table attachment field i want hide clear button in js can any one help me on this
Thank you
I know I’m late to this, but I was looking for the same thing and I was able to do this. I am using v15 but it should work on v14 as well.
- In your custom app create a
js
file inpublic
folder and include it in<yourappname>.bundle.js
if you are on v14 or 15. - Copy the code from
frappe/public/js/frappe/form/controls/attach.js
and paste it in your js file. - Clear the code, but leave the method named
clear_attachment
- Remove line of code
<a class="btn btn-xs btn-default" data-action="clear_attachment">${__("Clear")}</a>