In the full-screen form of a doctype, I have the following working script
frappe.ui.form.on('Job', {
setup: function(jobCompForm) {
jobCompForm.set_query('site_component',
function(frm, doctypeName /* it is "Job" */, currentJobUid) {
return {
filters: {
assignment: jobCompForm.doc.assignment,
}
}
});
},
...
}
But on quick entry form, it seems that the above script has not effect.
Where can input the above script so that it works the same on quick entry form?
Thanks in advance