10

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.

0

3 Answers 3

15

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).

1
  • 1
    Good answer. Would be nice if QGIS implemented a feature to automatically hotlink URL's that are in the attribute table, so user can directly click on it from the attribute table
    – Chris
    Dec 4, 2016 at 20:05
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.

-1

The feature is implemented in QGIS 3.22

1
  • 4
    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 Bot
    Oct 14, 2022 at 6:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.