9

I would like to have the URL from an attribute (in the attribute table) as a 'hotlink' wherein you can click on the URL and it opens the browser with the data. As it is right now, I'm having to identify feature, R-click on the URL and copy/paste the URL into a browser.

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Chris Paul Geo
  • 703
  • 3
  • 7
  • 13

3 Answers3

16

Take a look in Action menu at QGIS documentation. You need to define an action, this could be open urls defined by a field.

  • Open your vector's properties, go to actions and select + button.
  • type = open.
  • Action text = [%url_field%] and click insert.

To ejecute action, click in your object with Run feature action button (attributes toolbar).

aldo_tapia
  • 13,560
  • 5
  • 30
  • 56
4

You have to:

  1. Add a text field (PATH for example) to table and place the url to the pdf in the that field.

  2. Then go to layer properties and go to actions and add new action

  3. Type = open, Action text type [% "PATH" %]

  4. Select OK and apply.

gisnside
  • 7,818
  • 2
  • 29
  • 73
Andy
  • 61
  • 3
-1

The feature is implemented in QGIS 3.22

Dieter
  • 1
  • 6
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. – Community Oct 14 '22 at 06:57