I want to custom query a link fieldtype. I can use frm.set_query for form.
But the script is not running for the webform (created based on the doctype).
I also tried to use frm.set_query in the web_form js and in the webform client script section:
frappe.web_form.on('Anggota', () => {
frm.set_query( "city", function () {
return {
"filters": [
[ "Territory", "parent_territory", "=", frm.doc.propinsi ],
]
}
} );
});
What is the equivalent of frm.set_query for the webform?
Or how do I make it work?
Thank you