How to set different default Letterhead for a certain DocType

Hi,

In our Item Doctype we want to have a different Letterhead than our default one. Right now we have to always change Letterhead manually and it always add a step to our employee. We want to set a different default Letterhead automatically for this Doctype.

Can anybody help?

Thank you!

Solution :

In Client script :

frappe.ui.form.on('YourDoctype', {
    refresh(frm) {
        frm.doc.letter_head = "No Letterhead";
    }
1 Like