Select to view content in your preferred language

Arcade: Escape Character for URL containing {}

172
3
Jump to solution
a week ago
Labels (1)
mgold_timmons
New Contributor

I am trying to add a URL to a pop-up using the Arcade element, but the URL contains values inside { } and Arcade is removing that entire portion from the returned result. I can't find any helpful escape characters to negate this.

This is an example of the URL:

https://clientURL/?search={[Property Card]:[Sec_Block_Lot] = "77-3-34"}&openlfoneresult=true
 
This whole section: {[Property Card]:[Sec_Block_Lot] = "77-3-34"} is removed and instead, I get:
 
 
When I try the escape character {{ }}, it returns https://clientURL/?search=}&openlfoneresult=true
 
I've also tried urlEncode(), subbing in %7B and %7D as encoded values for {}, and \ as an escape character, but none of those have worked. I also tried using a normal text element and adding in the URL as a link with the same truncated result.
 
Is there something obvious I'm missing? I appreciate any help!
0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

Try using the escape character "}" for "{" and "}" for "}". This syntax seems to work

 
var output = `https://clientURL/?search={[Property Card]:[Sec_Block_Lot] = "77-3-34"}&openlfoneresult=true`

return { 
	type : 'text', 
	text : output
}

KenBuja_0-1762298668535.png

 

View solution in original post

3 Replies
KenBuja
MVP Esteemed Contributor

Try using the escape character "}" for "{" and "}" for "}". This syntax seems to work

 
var output = `https://clientURL/?search={[Property Card]:[Sec_Block_Lot] = "77-3-34"}&openlfoneresult=true`

return { 
	type : 'text', 
	text : output
}

KenBuja_0-1762298668535.png

 

mgold_timmons
New Contributor

This worked! Thank you so much!

0 Kudos
KenBuja
MVP Esteemed Contributor

Glad to help. Don't forget to click the "Accept as Solution" button to help others searching for this answer.

0 Kudos