I would like to add a choice list to the Web Tool I have published in portal that I have added in a webapp widget. What this tool does is takes an input (work pack), does a select by location of all the features that have this work pack in their attributes and then sends them in a zip file to the entered email. Data is stored on SQL Server.
The Work Pack names are quite long and I don't really want the user to type them in so ideally a drop down list of the names in the widget would be best.
I don't have the option to add a choice list for some reason in the input mode.
Is there any reason why this would not be available? Using Pro 2.9.
In your python toolbox, have you set the parameter correctly? It should look something like;
param = arcpy.Parameter(name = 'in_list',
display_name = 'Input List',
direction = 'input',
parameterType = 'Required',
datatype = 'GPString')
param.filter.type = 'ValueList'
value_list = ['Option 1', 'Option 2', 'Option 3']
param.filter.list = value_list
Once your tool knows it is a drop down list, then when you go to publish it you will have the option of 'choice list' for your input mode.