My friends have two fields of type link, first field parent_department father and second field
department_name
I want to choose when the first field, but the entity appears in the second field sub-entities of the first field
You participate if you kindly
Since I did this code and did not fit
frappe.ui.form.on (“divorce_certificates”, “parent_department”, function (frm) {
if (frm.doc.parent_department == “parent_department”)
{
set_field_options (“department_name”, [“doc.department_name”])
}
});