Select to view content in your preferred language

Experience Builder - building expressions

3776
9
Jump to solution
12-16-2021 10:12 AM
Labels (1)
HelenCooper
Frequent Contributor

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

 

HelenCooper_0-1639678176430.png

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

You have to put that first bit in quotes.

"https://mapitout.co.uk/" + {globalid}
- Josh Carlson
Kendall County GIS

View solution in original post

9 Replies
jcarlson
MVP Esteemed Contributor

You have to put that first bit in quotes.

"https://mapitout.co.uk/" + {globalid}
- Josh Carlson
Kendall County GIS
HelenCooper
Frequent Contributor

Thank you @jcarlson , that sorted it - really appreciated!

rachelm
Regular Contributor

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?

0 Kudos
JJ_Reyes
Frequent Contributor

@rachelm - did you ever figure out if this was possible?

0 Kudos
RyanBohan
Frequent Contributor

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.

RyanBohan_0-1701890206842.png

 

JackDrost
Occasional Contributor

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.

0 Kudos
KevinDonahue3
Emerging Contributor

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!

HelenCooper
Frequent Contributor

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?

HelenCooper_0-1741777305112.png

 

0 Kudos
KevinDonahue3
Emerging Contributor

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.

0 Kudos