Hi guys,
Currently I am developing a Frappe application. Let say I have a Driver doctype, and want to get the input dom element in refresh.
Please take a look at the following script on ‘Driver.js’:
`frappe.ui.form.on('Driver', {
refresh: function(frm) {
console.log('instance of', 'frm.fields_dict.full_name.input is', frm.fields_dict.full_name.input);
}
});`
Output:
instance of frm.fields_dict.full_name.input is undefined
Expected output:
instance of frm.fields_dict.full_name.input is <input type="text" autocomplete="off" class="input-with-feedback form-control" maxlength="140" data-fieldtype="Data" data-fieldname="full_name" placeholder="" data-doctype="Driver">
It was fine until the latest version of Frappe.
Please advise.
Thanks,
Pujianto