Depend On other Field in same Form

Hello,

I have Form Project, then i have field “choose employee” (Link to Doctype Employee), “jenis unit” (Link to Doctype Jenis Unit), “choose unit” (Link to DoctypeUnit) and other field in project form.
Now i want to make a Project A, with jenis unit Excavator, so i select Jenis Unit Excavator from field Jenis Unit and i want in Unit field only have selection unitname with jenis unit Excavator.

In Doctype Unit there is field Jenis Unit

Can we do that in ERPNext?

Regards,

1 Like

Hi @jellf,

You ma want to take a look at these use cases:

Hope these help. Thanks!

1 Like

May i know here should put this script?
in this file?
/apps/erpnext/erpnext/projects/doctype/project/project.js

Regards,

In the custom script of Project doctype.
http://frappe.github.io/erpnext/user/manual/en/customize-erpnext/custom-scripts/

2 Likes