Hi
Writing a simple script in ArcGIS Pro, like this
import arcpy
"""The source code of the tool."""
fc_orig = arcpy.GetParameter(0)
fc_origkey = arcpy.GetParameterAsText(1)
When i run it in ArcGIS Pro i can interact with layers in the TOC and observe the list of field in the combobox change the values as aspected

This beacuse the tool properties are set, as visible in this other picture

But when the same tool it was published as "web tools" in the portal we have a corrisponding tool that doesn't have the same behavior.

In effect the second filed (combobox) doesn't update the values when the first combobox change layers, in the TOC as it happens in ArcGIS Pro?
Hoping i was clear i waiting for an idea.
Thank you in advance
max