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.
3 Answers
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).
-
1Good 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– ChrisDec 4, 2016 at 20:05
You have to:
Add a text field (PATH for example) to table and place the url to the pdf in the that field.
Then go to layer properties and go to actions and add new action
Type = open, Action text type [% "PATH" %]
Select OK and apply.
The feature is implemented in QGIS 3.22
-
4Your 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 BotOct 14, 2022 at 6:57