Turn off layer fields in Arcpy

2662
1
01-14-2014 01:20 AM
MichaelHarrop
New Contributor II
Hi,

We have a number of mxds which we use for map services. Within them we have a number of fields which we want to turn off e.g. object_id, shape_length etc. Is it possible to switch these off in arcpy so that they are not visible when identify is use or can it only be done by going into the mxd and un-ticking them?

Thanks
0 Kudos
1 Reply
JimCousins
MVP Regular Contributor
The FieldInfo() class has a setVisible(index, visible) parameter.
Regards,
Jim
0 Kudos