Form is not loading get_docfield (Format input) inside JS

I`m trying to use Mask inside some input… so I did that on my doctype.js:


frappe.require("assets/erpbr/js/jquery_mask/jquery.mask.min.js");

frappe.ui.form.on('Cliente', {
	refresh: function(frm) {

	},
	onload: function (frm) {
		
        frappe.meta.get_docfield('Cliente', 'cpf').on_make = function (control) {
            $(control.input).mask('000.000.000-00');
        };

        frappe.meta.get_docfield('Cliente', 'cnpj').on_make = function (control) {
            $(control.input).mask('00.000.000/0000-00');
        };

        frappe.meta.get_docfield('Cliente', 'cep').on_make = function (control) {
            $(control.input).mask('00000-000');
        };
    }
});

Doctype form load JS corectly… but appears the function frappe.meta.get_docfield doesn’t work…

Any thoughts why doesn’t work these?

No sign of an exception for clues to the problem?

No exceptions, and nothing on Console…

If I put a console.log() inside onload: function show to me on console…so… frappe call JS correctly, and call onload function… that’s the reason I believe the problem if on get_docfield function… put console.log inside them not work.

@fellipeh did you get it working? How did you do it?