Edit feature with editor widget java script !!

765
1
05-23-2019 07:29 PM
ANILBaral
New Contributor

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. 

0 Kudos
1 Reply
DerrickWong
Esri Contributor

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...

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.

Using dev tools in your browser, you can enable the popup for the live example just for a particular session,

0 Kudos