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[0].altered:
            fieldList = []
            for field in arcpy.ListFields(str(parameters[0].value)):
                fieldList.append(field.name)
            parameters[2].filter.list = fieldList

            if parameters[1].value is True:
                parameters[3].enabled = True
                parameters[4].enabled = True
                parameters[3].filter.list = fieldList
                parameters[4].filter.list = fieldList
            else:
                parameters[3].enabled = False
                parameters[4].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[0].altered:
            fieldList = []
            for field in arcpy.ListFields(str(parameters[0].value)):
                fieldList.append(field.name)
            parameters[2].filter.list = fieldList
            if parameters[1].value is True:
                parameters[3].enabled = True
                parameters[4].enabled = True
                parameters[3].filter.list = fieldList
                parameters[4].filter.list = fieldList
            else:
                parameters[3].enabled = False
                parameters[4].enabled = False
        return
def updateParameters ( self , parameters ) : if parameters [ 0 ] . altered : fieldList = [ ] for field in arcpy . ListFields ( str ( parameters [ 0 ] . value ) ) : fieldList . append ( field . name ) parameters [ 2 ] . filter . list = fieldList if parameters [ 1 ] . value is True : parameters [ 3 ] . enabled = True parameters [ 4 ] . enabled = True parameters [ 3 ] . filter . list = fieldList parameters [ 4 ] . filter . list = fieldList else : parameters [ 3 ] . enabled = False parameters [ 4 ] . 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