Thanks a lot for your code, this is very helpful. I could make this work for normal Hosted Feature Layers. My problem is that I couldn't make it work for a Hosted Feature Layer View, because
item_data = item.get_data()
returns None, so I am not able to access 'fieldInfos'
Is this a general issue with Hosted Feature Layer Views or is there another way how I can configure the popup of these layers?
If necessary, I can provide an example layer to reproduce the issue. I would highly appreciate an answer.
Regards,
Lukas Würsch