Select to view content in your preferred language

AGSPopupInfo question

905
1
Jump to solution
05-30-2013 02:34 AM
AndrewOndecker
Emerging Contributor
Is there a way to limit what fields show up on an AGSPopupInfo?  Right now, when i add the featurelayer to the map,  i have outfields set to * because I want to be able to see every field when I click on the callout to display the graphic information.  However, I don't want all the fields to be shown when editing and only need the user to be able to edit a couple fields.  Is there a way to do this?
0 Kudos
1 Solution

Accepted Solutions
DiveshGoyal
Esri Regular Contributor
AGSPopupInfo has a property called fieldInfos which is an array of AGSPopupFieldInfo classes.
Each object corresponds to a field in the feature layer.
You can either remove fields from this array in which case they won't show up in the popup at all, or you can set the field's editable property to false in which case users will be able to see the field but not edit it.

View solution in original post

0 Kudos
1 Reply
DiveshGoyal
Esri Regular Contributor
AGSPopupInfo has a property called fieldInfos which is an array of AGSPopupFieldInfo classes.
Each object corresponds to a field in the feature layer.
You can either remove fields from this array in which case they won't show up in the popup at all, or you can set the field's editable property to false in which case users will be able to see the field but not edit it.
0 Kudos