view.when(function () { // Create the Editor with the specified layer and a list of field configurations editor = new Editor({ view: view, container: document.createElement("div"), layerInfos: [ { layer: featureLayer, deleteEnabled: false, addEnabled: false, fieldConfig: [ { Label: "MOS", initialState: "collapse", description: "Military Occupation Specaility", fieldConfig: [ // MOS information { name: "mos", label: "MOS", hing: "MOS three digit code (i.e 12Y)", }, { name: "series", label: "MOS Branch", hint: "The branch that the MOS belongs to (i.e Corps of Engineers)", }, { name: "jobtitle", label: "Job Title", hint: "MOS job title or description (i.e SNR GEO ENG SGT)", }, { name: "grade", label: "Grade/Rank", }, ], }, // End first group { Label: "Unit", description: "Unit Information", fieldConfig: [ // Unit information { name: "uic", label: "Unit Identification Code", editable: false, }, { name: "unit", label: "Unit", }, { name: "battalion", label: "Unit Battalion", }, { name: "macom", label: "Major Command", hint: "Select the Major Command that the MOS falls under", }, ], }, // End of second group { Label: "Location", description: "Unit Location", initialState: "collapsed", fieldConfig: [ // Locational { name: "address", label: "Unit Address", }, { name: "city", label: "Unit City", }, { name: "county", label: "Unit County", }, ], // Thrid Group }, ], }, ], });