Hello,
I have an app configured within ExBuilder v11.3 as follows:
Here's what I need, alongside the above:
There appears to be no way to set an action or link to allow this to occur. If I set a URL within the popup of the selected feature on the map using the below it does open to the correct view, but in a new browser tab:
So how can I either:
Solved! Go to Solution.
I can answer my own question and hopefully help someone else. I figured out I can use Javascript within an arcade expression. I use the below in a arcade element within a popup and it works exactly as I need it to:
var OID = $feature.OBJECTID
var url1 = 'https://myportal.com/portal/apps/experiencebuilder/experience/?draft=true&id=bxxxxxxxxxxf&page=LEAK-...'
var btn =
'<div align="center">'
+ '<a href="'+ url1 + OID +'"style="background-color:#007BC1;;color:#ffffff;padding:10px; border-radius:10px;text-decoration:none;display:inline-block;text-align:center;"target="_self" onclick=\"window.open(this.href, "_self"); return false;\" >'
+'<b>CREATE A NEW LEAK AT THIS ADDRESS</b>'
+'</a>'
+'</div>'
return {
type : 'text',
text : btn
}
This is how it looks. I need to refine this a bit to zoom the map into the same location but I’m on the right path…
I can answer my own question and hopefully help someone else. I figured out I can use Javascript within an arcade expression. I use the below in a arcade element within a popup and it works exactly as I need it to:
var OID = $feature.OBJECTID
var url1 = 'https://myportal.com/portal/apps/experiencebuilder/experience/?draft=true&id=bxxxxxxxxxxf&page=LEAK-...'
var btn =
'<div align="center">'
+ '<a href="'+ url1 + OID +'"style="background-color:#007BC1;;color:#ffffff;padding:10px; border-radius:10px;text-decoration:none;display:inline-block;text-align:center;"target="_self" onclick=\"window.open(this.href, "_self"); return false;\" >'
+'<b>CREATE A NEW LEAK AT THIS ADDRESS</b>'
+'</a>'
+'</div>'
return {
type : 'text',
text : btn
}
This is how it looks. I need to refine this a bit to zoom the map into the same location but I’m on the right path…
I can answer my own question and hopefully help someone else. I figured out I can use Javascript within an arcade expression. I use the below in a arcade element within a popup and it works exactly as I need it to:
var OID = $feature.OBJECTID
var url1 = 'https://myportal.com/portal/apps/experiencebuilder/experience/?draft=true&id=bxxxxxxxxxxf&page=LEAK-...'
var btn =
'<div align="center">'
+ '<a href="'+ url1 + OID +'"style="background-color:#007BC1;;color:#ffffff;padding:10px; border-radius:10px;text-decoration:none;display:inline-block;text-align:center;"target="_self" onclick=\"window.open(this.href, "_self"); return false;\" >'
+'<b>CREATE A NEW LEAK AT THIS ADDRESS</b>'
+'</a>'
+'</div>'
return {
type : 'text',
text : btn
}
This is how it looks. I need to refine this a bit to zoom the map into the same location but I’m on the right path…