[Question] How to fetch value of meta field say "creation" in doctype?

Hi!

I wish to customise existing doctype ex. Dynamic Link and would like to show the creation date. Note ‘creation’ is meta field that is created by erpnext framework. I tried to put “creation” in options but that doesn’t fetch the field value. Any pointers?

Try Fetch From instead of Options: [Enhance] New DocField - 'Fetch From' by Zlash65 · Pull Request #5563 · frappe/frappe · GitHub

Thanks! Pratu , it is in develop branch and my code base is on production so i guess i need to wait to test it

At present I have solved it with following custom client script

frappe.ui.form.on('Supplier', {
	onload: function (doc, dt, dn) {
		for (i = 0; i < cur_frm.doc.links.length; i++) {
			var cdate = frappe.model.get_value('Dynamic Link', cur_frm.doc.links[i].name, 'creation');
			frappe.model.set_value('Dynamic Link', cur_frm.doc.links[i].name, 'link_date', cdate);
		}
	}
});

My bad. Yes, custom scripting is the only way to do it currently. Glad to hear of the resolution.