By Wolfram Schmidt on March 6, 2022
Beginner

Um in einem DocType die +-Buttons die im Standard sichtbar sind auszublenden kann folgender Code per Custom Script eingesetzt werden




For this you can use, //Hide + button
frappe.ui.form.on('Quotation', {
 refresh(frm) {
   $('.document-link [data-doctype="Sales Order"]').eq(1).hide();
 },
 onload(frm){
   $('.document-link [data-doctype="Sales Order"]').eq(1).hide();
 }
});


More articles on Customizing


Comments

No comments yet.

Add a comment
Ctrl+Enter to add comment