Select to view content in your preferred language

click on feature and redirect to url or pdf?

3177
3
Jump to solution
08-06-2015 05:01 PM
LefterisKoumis
Frequent Contributor

Hello.

Any ideas to add functionality when users click on a feature, they are  redirected to a url that is defined in one of the fields of the feature attributes.

Thank you.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Lefteris,

  Yep that is the way to go.

View solution in original post

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Lefteris,

   You can add a link to the popup in the WebMap in AGOL. Other than that you would have to create a custom widget that adds a click event to the FeatureLayer and defines the field to use for the url.

0 Kudos
LefterisKoumis
Frequent Contributor

Thanks.  I was looking for a url redirect when you click on a feature, not a popup. Very similar of what you created on the flex. So, for js, an off-panel widget which  starts up and listens when the app initiates is the way to go.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Lefteris,

  Yep that is the way to go.

0 Kudos