Hi @JeffreyWilkerson
You're right, that's not my problem. I hope the following lines make it clearer:
The layer is hosted on the REST and is initialised as MapImageLayer in the map. It contains 20 different geometries with various variables. Amongst those variables/attributes is the said "ABK". ABK contains 20 different values, e.g. SNP, BVM, WPZ, ... I need the code to return the value of this variable (e.g. BVM), but in lowercase (e.g. bvm). Thus, I can't access the variable outside of the popup template (according to my understanding), as the value of "ABK" changes depending on which geometry has been clicked.
If I'm using your code, it just transforms {ABK} to {abk}. What I need is to transform the returned value to lowercase within the popup template. is that possible? or would a minimal example help?