I create one custom field called mydata
in sales invoice form.
I create custom script for sales invoice. In that I set an value for mydata
.
frappe.ui.form.on("Sales Invoice", "onload_post_render", function(frm) {
var data = "hello"
frm.set_value("mydata", data);
});
I create a custom print format for sales invoice which contains:
{{doc.mydata}}
value is appear perfectly in the normal view as below.
But in Print, Fullpage, PDF it shows none.
Am i miss something ?