Hello,
I have a feature class in a web map that has an attribute containing a URL link to each location's web page. I was to use this URL in a text box with the dynamic text function, but I don't want the entire URL to be exposed. Instead I would rather have the link read something like "Visit this site's web page."
I didn't expect this particular setup to work and was not surprised.
Is there a way to use a href or some other HTML to do this?
Solved! Go to Solution.
@ZachBodenner - I guess earlier I understood your case a bit off. If using the above solution, before each record is selected it will show the label, but it will display the value of your {URL}.
In your case, you can just use a text widget, and type in the string "Visit Website"; then connect with your data and link to a dynamic URL here:
Exactly what I was looking for, thanks so much!
Well after doing more testing it turns out I might have jumped the gun on accepting this solution. So I was able to successfully get the expression to show "Visit Website" but when I actually deploy the application, it doesn't hold and instead shows the whole URL.
@ZachBodenner - I guess earlier I understood your case a bit off. If using the above solution, before each record is selected it will show the label, but it will display the value of your {URL}.
In your case, you can just use a text widget, and type in the string "Visit Website"; then connect with your data and link to a dynamic URL here:
Ah. Duh. Thank you!