2

In my script tool case, I've used the validation tool to make parameter[4] enabled only if parameter[3] equal a certain value, but i need to make this parameter[4] required only if enabled. the problem is that when i set it's type to "required" and i try to execute the script it asks me to set a value for parameter[4] even if it stayed disabled!

Is There any solution to make it Required only if it's enabled?

1
  • 2
    Could you set a value into parameter[4] yourself when its disabled to get past validation? And inside the script handle (ignore) that value? – KHibma Aug 10 '16 at 18:13
1

I think that your best bet would be to use a python toolbox instead of importing the script into an existing toolbox. Then using a conditional statement to control the parameterType of parameter 4.

However I'm not sure that this is possible. You are essentially trying to update the number of inputs in an ESRI derived GUI in realtime using user selected inputs.

Not the answer you're looking for? Browse other questions tagged or ask your own question.