How to get the Format of mention fields when I Customize

When I need to customize any DocType using client script, I can’t get the format of mentioning fields for example: “frm.doc.base_grand_total”, “cur_frm.cscript.mode_of_payment”
thanks for your help