Hi,
I'm trying to use a button to link to a URL and pass a value from a data source. I'm struggling to find any documentation on how to do this, and my random guesses at how to build the expression are not fruitful!
Could anyone point me in the right direction?
Many thanks,
Helen
Solved! Go to Solution.
You have to put that first bit in quotes.
"https://mapitout.co.uk/" + {globalid}
Thank you @jcarlson , that sorted it - really appreciated!
I'm trying to build an expression that will include multiple field values based on selected map features. So it would look something like: https://mylink/....objectids=186,171
So far what happens is my string only takes the last objectid of all the features selected. is this possible?
You can include multiple attributes with the plus sign. The Expression below gets the lat/long from the attribute and links to google maps walking directions.
Can someone tell me what the language is for these expressions, so I can find some documentation for it? It doesn't appear to be Arcade.
Thanks for sharing this image, but I've got a dumb question in relation to it. I'm trying to feed some dynamic URLs with experience builder parameters through a button and everything seems to be working, but I can't for the life of me figure out how to copy and paste text into the expression.
The only way I can get my expression built out is by hand typing the entire thing. This wouldn't be so bad with something like your example, but I'm looking a having to type several layer id's for filters by hand and that's a recipe for errors. I just really feel like I'm missing something and doing this the hardest possible way.
Thanks in advance for any help!
Hi @KevinDonahue3 ,
I just had a go and am able to paste into the URL text box (as long as the 'link to' box is set to 'URL'. Is that where you're trying to paste?
Hi Helen,
I'm working with a button in a list and trying to pass through a dynamic expression that will open another page and select a feature on the map and engage a couple of filters based on the ID of the list item. I've got all the expressions figured out, but I need to add in an additional filter in the middle now.
Unfortunately to do that, the expression window won't let me split a string and add in another dynamic component. So far the only solution I've found is to just retype everything that comes after the new filter. It works, but it's tedious.