I made a custom popup for a specific layer. But my method is really not good for Web Appbuilder/WebMap environment.
Section from the customPopup widget:
This way, i have to remove the layer from the webmap to avoid duplication.
I would rather modify programmatically the original layer's infoWindow. But i cannot find any documentation for this.
How can i reference existing objects? Every tutorial or sample creates new ones...
I tought something like this will work:
Solved! Go to Solution.
Thank you so much! It was not working because the infotemplate is infoTemplate But finally we (you two) solved the case here
Just for the record:
Do you have any tricks here to leave the related records section untouched when i'm resetting the infotemplate object?
I could use the PopupManager.js's methods to call the RelatedRecordsPopupProjector.js after the new infotemplate creation. Just it's needed to add the esriViewPopup class to the popup div.