This is related to the post: https://community.esri.com/t5/python-questions/turn-off-fields-with-python/td-p/403316/page/2
by @DylanHarwell
There is a need to be able to turn on and off Fields in Python on Layers that have been created by joins or on existing layers in a project via ArcPy.
This is a sample workflow:
1. Create a new feature class via Spatial Join of 2 Layers
2. Use Create Feature Layer to create a layer from the Feature Class
3. Create a creates a geoprocessing field info object from the new Layer.
4. Iterate through the field info object to set fields as hidden or visible
5. NEW: Use the Field Info object to set the fields in the new Layer created earlier.
OR make the arcpy.Describe().FieldInfo function able to access a new Feature Class that not currently displayed as a Layer.There were (cumbersome) solutions for ArcMap.