I create a feature layer from external service(JSON data). All the fields of the feature layer display in the popup. There is one custom field i.e. for eg 'Test_id' which has a unique value for each feature(not ObjectId). When I open any popup I get a selected index popup feature and from that feature/attributes, I fetch the 'Test_id' field value to perform some action. If I set field visibility false in the popup field Infos then in popup features I am not getting that field but I want that field to perform some logic and at the same time I want that field is not displayed in the popup UI.
Issues: If I set field visibility false in the popup field Infos then in popup features I am not getting that field.
Question: How can I get the 'Test_id' field value from popup selected index features if field visibility is false in the popup fieldInfos? If visibility is true in the popup field Infos then how to display none for that field in the popup UI