add related table to popup

01-23-2019 07:51 AM
Occasional Contributor

Hi all

Am trying to work out how to populate a popup with values from a related table using this as an example:

Popup with related fields | ArcGIS API for JavaScript 3.27 

Essentially, what I am trying to do is display a list of species (from a related table) that occur within a polygon and list these in the popup

I have tried this:

function loadTable(){
var popupTemplate = new PopupTemplate({
"title": "Site with species",
"fieldInfos": [{
"fieldName": "NatName"
}, {
"fieldName": "relationships/0/SitNational",
"fieldName": "relationships/0/Common_name",
"description": " there are these species: ",


I can see the species returned in web developer but am struggling to find a way of listing these in the popup. Is it even possible to use this method to achieve this?

Any advice or suggestions most welcome.

Many thanks,


0 Kudos
0 Replies