geoprocessing output string as a hyperlink

830
3
Jump to solution
05-28-2018 11:43 AM
deleted-user-uXtLD1BYscf0
New Contributor III

I have a custom geoprocessing widget that does some spatial queries, and currently returns a string in the output tab using SetParameter in the output tab of the widget. Cool. But...the string is a URL what's the best way to display this as a clickable hyperlink? I am using the WebAppbuilder 2.4.
My python is good but my javascript is beginner. I have managed to use the Web App Builder for everything so haven't dived into the JS (yet). 

custom geoprocessing widget output tab

0 Kudos
1 Solution

Accepted Solutions
AdrianWelsh
MVP Honored Contributor

Peter,

Could you put the appropriate html tags around the string in order to make it clickable?

So you would add:

<a href="https://www.YOURURL.com">TEXT of URL</a>

Or some combination of the above.

View solution in original post

3 Replies
AdrianWelsh
MVP Honored Contributor

Peter,

Could you put the appropriate html tags around the string in order to make it clickable?

So you would add:

<a href="https://www.YOURURL.com">TEXT of URL</a>

Or some combination of the above.

deleted-user-uXtLD1BYscf0
New Contributor III

I am a muppet. This actually is all I need to do. I swear I tried this. Thanks.

0 Kudos
AdrianWelsh
MVP Honored Contributor

Haha, I'm glad it was simple!

no problem.

0 Kudos