AnsweredAssumed Answered

JSAPI 4.4 PopupTemplate Default Content

Question asked by sam@traverse on Sep 6, 2017
Latest reply on Sep 7, 2017 by sam@traverse

I'm having trouble setting a popup template for a feature layer.  Based on the documentation I expected to be able define a PopupTemplate object, define the fieldInfos property and leave the content property null resulting in the popup displaying the fieldInfos as a table as documented here:


However, when I do this, the popup appears blanks:


I have to manually set the content property as follows to get the populate:


var popupTemplate = new PopupTemplate(this._config.popupInfo);
popupTemplate.content = [{

this._featureLayer.outFields = ["*"];
this._featureLayer.popupTemplate = popupTemplate;
return this._featureLayer;



Am I doing something wrong or is the documentation incorrect?