Depend On other Field in same Form


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?


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?


In the custom script of Project doctype.