Can not upload attachment in one supplier page only … other suppliers page i can upload the same pdf
Hi @GhadaEbrahim,
As per my understanding, I did apply the client script for your scenario.
frappe.ui.form.on('Supplier', {
refresh: function(frm) {
if (frm.doc.name == "Supplier 1") {
$('ul.list-unstyled.sidebar-menu.form-attachments').hide();
}
}
});
If Supplier 1 then the attachment option will hide but if not Supplier 1 then the attachment option will show.
Output: → Supplier 1
Other Supplier
I hope this helps.
Thank You!