I want to update the value of a field address_html of field type HTML using frappe.model.set_value as shown below.
When I reload, nothing happens. But if I change the field type to Text, I see the expected values (“Address goes here”). Could someone please point me to the right way to do this?
frappe.ui.form.on('Sample', 'onload', function(frm, cdt, cdn) {
frappe.call({
method: 'frappe.client.get',
args: {
doctype: 'Address',
name: frm.doc.address
},
callback: function(r) {
frappe.model.set_value(cdt, cdn,'address_html', "Address Goes Here");
}
});
});