Hi,
I am trying to change the label of a field in a custom form. Wrote this code in the Client Script. But it is not working. Is there any alternate solution?
function setDep(frm, cdt, cdn)
{
var cd = locals[cdt][cdn];
if (frm.doc.deposit_type == 'Transfer')
{
frappe.web_form.set_df_property('deposit_type', "label", "From Deposit Type");
}
else
{
frappe.web_form.set_df_property('deposit_type', "label", "Deposit Type");
}
}
Thanks,
Joseph