How do i get the feature attribute displayed in the header tab as shown in the esri editor widget sample example??(https://developers.arcgis.com/javascript/latest/sample-code/widgets-editor-basic/index.html) My map shows the untitled feature every time using this widget in my application.
Hi ANIL Baral,
You will need to configure the pop-up title of the feature service you want to edit.
You can read more about it here:
https://learn.arcgis.com/en/projects/get-started-with-map-viewer/arcgis-online/lessons/configure-pop-ups.htm
Tidbit
From the live example you have provided, if you use dev tools (usually F12) on your web browser, you can add a breakpoint at line 54 and then toggle the popup so that it is visible. After which you can see that the pop-up title for that 'Hazards' layer is using attribute 'Hazard Type' as the title.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.