Khatavahi BI Solutions LLP - Set Global Default Value via Client Script in Frappe and ERPNext

Set Global Default Value via Client Script in Frappe and ERPNext

 · 1 min read

frappe.ui.form.on('Opening Invoice Creation Tool', {
refresh(frm) {
 cur_frm.set_value("company",frappe.defaults.get_user_default("Company"))
}
})

Connect

We believe in the transformative potential of ERPNext.


Jigar Tarpara

ERPNext & Frappe Consultant ERPNext & Frappe Developer CEO at Khatavahi BI Solutions LLP

Add a comment
Ctrl+Enter to add comment

Jigar Tarpara 2 years ago

This can be help fulll to set any filed value to some value on any doctype