Here is an example of the links in my attribute table
Some start with R some with mceas01. Either way I want to keep whatever comes after "R:/" or "\\mcenas01\" using arcade in a popup. I tried calling support but claimed they could not help.
Solved! Go to Solution.
Update:
This ended up working for me
Mid ($feature.Hyperlink, 24)
Create an expression and then set up the hyperlink to be the website + this expression
You could do an if else statement- and then use the Right Function with a 3 for the R:/ and a 11 for the \\mcenas01\ ?
The right function says it gets values at the end of the link. This changes so it won't work for me
You can use the Replace function to get rid of those strings, but you have to be careful. The Arcade interprets a backslash as part of an escape character, so you have to use it twice in Replace for it to work properly. This will replace either in a single line.
var output = Replace(Replace($feature.Hyperlink,'\\\\mcenas01\\',''),'R:\\','');
Update:
This ended up working for me
Mid ($feature.Hyperlink, 24)
Create an expression and then set up the hyperlink to be the website + this expression