I want to filter my Healthcare Practitioner on a “location” basis (custom field).
Location is the common field in Patient Appointments and Healthcare Practitioners.
This is my code.
cur_frm.set_query(“practitioner”, function () {
return {
“filters”: {
“location”: cur_frm.doc.location
}
}
});
But no result.
The practitioner record is not filtered, even though the set query filter is displayed in the dropdown.
Also, edited the field location in the search field section of customize form, but not visible in the dropdown.