How to apply filter in Web Form

Like we did in Normal Client Script

frappe.ui.form.on("Vendor Form", {
    refresh(frm) {
        frm.fields_dict['addresses'].grid.get_field('city').get_query = function(doc, cdt, cdn) {
            child = locals[cdt][cdn];
            return {	
                filters:[
                        ['state', '=', child.state]
                ]
            }
        }
    }
})

How we access child filed value in web form so instead hardcoded value of Goa i want to pass child.state something like i do in normal client script?

frappe.ready(function() {
	var addresses_field = frappe.web_form.fields_dict['addresses'];
	addresses_field.grid.get_field('city').get_query = function(doc, cdt, cdn) {
		return {
			filters: [
				['state', '=', 'Goa']
			]
		};
	};
});

Not too much idea but check it.