GeocodingTools.py
def updateParameters(self, parameters):
        """Modify the values and properties of parameters before internal
        validation is performed.  This method is called whenever a parameter
        has been changed."""
        if parameters[1].altered:
            if parameters[1].value is True:
                parameters[2].enabled = True
                fieldList = []
                for field in arcpy.ListFields(str(parameters[0].value)):
                    fieldList.append(field.name)
                parameters[2].filter.list = fieldList
            else:
                parameters[2].enabled = False
        return
Modify the values and properties of parameters before internal
        validation is performed.  This method is called whenever a parameter
        has been changed.
Modify the values and properties of parameters before internal
validation is performed.  This method is called whenever a parameter
has been changed.
Modify the values and properties of parameters before internal validation is performed . This method is called whenever a parameter has been changed .
def updateParameters(self, parameters):
        if parameters[1].altered:
            if parameters[1].value is True:
                parameters[2].enabled = True
                fieldList = []
                for field in arcpy.ListFields(str(parameters[0].value)):
                    fieldList.append(field.name)
                parameters[2].filter.list = fieldList
            else:
                parameters[2].enabled = False
        return
def updateParameters ( self , parameters ) : if parameters [ 1 ] . altered : if parameters [ 1 ] . value is True : parameters [ 2 ] . enabled = True fieldList = [ ] for field in arcpy . ListFields ( str ( parameters [ 0 ] . value ) ) : fieldList . append ( field . name ) parameters [ 2 ] . filter . list = fieldList else : parameters [ 2 ] . enabled = False return
Modify the values and properties of parameters before internal
validation is performed.
Modify the values and properties of parameters before internal validation is performed .
"""Modify the values and properties of parameters before internal
        validation is performed.  This method is called whenever a parameter
        has been changed."""
self
parameters