Select to view content in your preferred language

How to Disable Input Field with Python Toolbox?

2838
1
Jump to solution
06-29-2012 06:50 AM
AlanToms
Regular Contributor
I???m creating a tool with the new to 10.1 Python toolbox.  I???ve reviewed the help but do not see how to disable an input parameter field.

Input parameter[0] is a feature class.  I have code in the updateParamaters definition to identify what shapeType it is.  That portion works

What I would like to do is to disable the input parameter[1] field based on parameter[0].  Basically if it is a point feature class, I want the next input field to go gray and not allow an input.  Anyone have suggestions or a link?

Thank you
Alan
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AlanToms
Regular Contributor
Of course, as soon as I post my question I find the answers.
parameters[1].enabled = 0

View solution in original post

0 Kudos
1 Reply
AlanToms
Regular Contributor
Of course, as soon as I post my question I find the answers.
parameters[1].enabled = 0
0 Kudos