Hello all!
I am struggling with adding Arcade to a simple custom div popup in a javascript 4.x build? should be simple?
the Arcade script works within an AGOL mapview, but I must be missing something trying to add it to my js. I am accessing the FeatureLayer directly, independent of a mapview.
actually, I am having trouble adding 'anything' to the div beyond simple html text.
I am trying to get the contents of a source Field to show in the div 'popup', and it does not recognize "$feature". The actual Arcade is somewhat irrelevant, it's the process of getting the js to recognize the Arcade statement, and getting that output into the html div.
This is actually a popup that is triggered by a Sources click inside an existing popupTemplate. see screenshot and pieces of the code below-
*THE ARCADE*
..or possibly use a popupTemplate within a popupTemplate instead of html div? not sure if that's possible from the click within the first popup tho..