Hi, Dear Guy. Could anyone give me the documentations of fetch and option which are under the fieldname of particular doctype.
Cheers
Jack
Hi, Dear Guy. Could anyone give me the documentations of fetch and option which are under the fieldname of particular doctype.
Cheers
Jack
Hello. You could explain better what you are asking. Heres and example of fetching an option from a Single Doctype.
frappe.ui.form.on('Package', {
onload_post_render: function(frm) {
if (!frm.doc.origin) {
console.log("Setting default origin")
frappe.db.get_single_value("Package Management Settings",
"default_origin").then((value) => value ? frm.set_value('origin', value) : '');
}
},
});