Am not able to msg print once i change the expense_typr

frappe.ui.form.on("Expense Claim Detail", "expense_type", function(frm, cdt, cdn) {
var d = locals[cdt][cdn];
 msgprint("sucuess event at " );



Import following package-
from frappe import msgprint
try using frappe.msgprint(" ")


its not about msgprint …

there is no change or error in expense_type field change

include you js file in in doctype_js section
doctype_js = {
Expense Claim": [“custom_script/expense_claiml/expense_claim.js”],

1 Like

Am trying it at custom script section


working for me

Hi the doctype will be

Expense claim
Or expense claim details

Use parent doctype as Doctype while writing a Custom Script on the child table.
Check given screen shot.

SyntaxError: Unterminated template literal
at Class.setup (
at _f.Frm.setup (
at _f.Frm.refresh (
at Class.load (
at Object.callback (
at Object.callback [as success_callback] (
at 200 (
at Object. (
at i (

its show me an

error when am trying with doctype

remove ' from the end of the script.

thank you …