I am creating a tool that geocodes a user input table. The address locator was built with a reference table that has many prejoined value fields so when a user geocodes a table all associated boundary overlay values can be returned as part of the geocoded point results.
I want this tool to give users a choice of which fields they would like returned with their geocoded output instead of the limited options offered during a normal geocoding event in ArcGIS Pro (i.e. all, minimal, address only, etc.).
Is there a way I can put the field names for the optional output fields as a parameter in a script tool so that a Python script can keep only the fields chosen by the user?
Sounds like you want to create a parameter that has a dependency to a layer parameter and that it takes multiple values. This is easy to set up. The basics are shown below.
This will give the user experience of allowing you to select multiple fields: