I have this client script on the ‘Item’ DocType, with a custom field of type Data, named ‘test’.
I have the ‘enabled’ tick box clicked and client_script_enabled = True on the site config.
The field does not change with a load/refresh. I also tried to get it to throw an error but nothing. I’m trying to check the logs but I’m running in docker, not sure which container holds the logs for this.
frappe.ui.form.on('Item', {
refresh(frm) {
frm.doc.test = 2;
}
});