I have a doctype with 2 fields:
- Document Type (document_type)
- Field Name (field_name)
What I want to do is when I select document in document_type field, in the field_name type field it should populate the Select options with all the fields available for that doctype.